How to use array in visual basics database development
Hi all..
Here’s what I wanted to do…
I have a list of hobby for a particular person.
TxtHobby1
TxtHobby2
TxtHobby3
So I wanted to represent the above problem with array.. will it be possible?
Previously here’s what I do…
With rsUpdFamily
!hobby1 = frmFamily!txtHobby1.Text
!hobby2 = frmFamily!txtHobby2.Text
!hobby3 = frmFamily!txtHobby3.Text
End With
rsUpdFamily.Update
at the same time… my access table also will have the same field name to store all those data.
Hobby1 as text
Hobby2 as text
Hobby3 as text
Is there any simpler ways to do that?
I don’t want to do all those if I have around 12 hobbies, so using array is a simpler solution but I have no idea on how to use it properly in Database environment.
:confused:
thanks for all the help..
if need better clarification don't hesitate to ask me again..
kuman