G
Guest
I guess I just don’t understand recordsets yet.
I’m working on a form with a combo box that looks up customer names from a
query that I use to identify the equipment that the customer has at his
location.
I would like to set up X amount of textboxes on this form and have then
become visible to display the equipment description.
The code would look a little like this, I think
Private Sub Combo0_AfterUpdate()
Dim rst As Recordset
Dim I As Integer
rst.MoveFirst
' use I to number text boxes txtName1, txtName2....
I = 1
Do
Me.txtName(I).Visible
Me.txtName(I).Value = rst
rst.MoveNext
I = I + 1
Loop Until rst.EOF
End Sub
Any help would be greatly appreciated
I’m working on a form with a combo box that looks up customer names from a
query that I use to identify the equipment that the customer has at his
location.
I would like to set up X amount of textboxes on this form and have then
become visible to display the equipment description.
The code would look a little like this, I think
Private Sub Combo0_AfterUpdate()
Dim rst As Recordset
Dim I As Integer
rst.MoveFirst
' use I to number text boxes txtName1, txtName2....
I = 1
Do
Me.txtName(I).Visible
Me.txtName(I).Value = rst
rst.MoveNext
I = I + 1
Loop Until rst.EOF
End Sub
Any help would be greatly appreciated