G
Guest
I am trying to make a simple loop that will check a database field, if it is
not null then change a yes/no box to checked.
Ex. Fields Code1, Code2, Code3
Yes/No Boxes List1,List2,List3
VB Code =
While x < 612
If [Code1] = 1 Then [List1] = True
If [Code2] = 2 Then [List2] = True
If [Code3] = 3 Then [List3] = True
x = x + 1
----
How do I get VB to switch to the next record in the db and then run through
the If statements again. It does the first record just fine, then dies. The
x < 612 is in there as there are only 611 records in the table.
Any ideas?
thanks
Ken L.
I.T. Support Lackey
not null then change a yes/no box to checked.
Ex. Fields Code1, Code2, Code3
Yes/No Boxes List1,List2,List3
VB Code =
While x < 612
If [Code1] = 1 Then [List1] = True
If [Code2] = 2 Then [List2] = True
If [Code3] = 3 Then [List3] = True
x = x + 1
----
How do I get VB to switch to the next record in the db and then run through
the If statements again. It does the first record just fine, then dies. The
x < 612 is in there as there are only 611 records in the table.
Any ideas?
thanks
Ken L.
I.T. Support Lackey