damienwjking
Programmer
I am having problems evaluating a varible and field for input.
Seems simple in other languages like Java etc. I want to loop through a record set and assign the values to different fields. (i.e. ID1,ID2,ID3,ID4 etc) Code below
i=1
Do While Not rs.EOF
Eval ("Me.ID" & i & " = rs('ContactID')"
Eval ("Me.FirstName" & i & " = rs('FirstName')"
Eval ("Me.LastName" & i & "= rs('LastName')"
rs.MoveNext
i = i + 1
Loop
Does anyone know the syntax for VB or am I going about this the wrong way. Suggestions
Seems simple in other languages like Java etc. I want to loop through a record set and assign the values to different fields. (i.e. ID1,ID2,ID3,ID4 etc) Code below
i=1
Do While Not rs.EOF
Eval ("Me.ID" & i & " = rs('ContactID')"
Eval ("Me.FirstName" & i & " = rs('FirstName')"
Eval ("Me.LastName" & i & "= rs('LastName')"
rs.MoveNext
i = i + 1
Loop
Does anyone know the syntax for VB or am I going about this the wrong way. Suggestions