Hi Guys,
I have a small issue,
I am trying to run a sql statement in vba in which it selects all the records in a table related to a order Id number.
I then want it loop through all the records and check for a check box which is selected.
if its selected then "A" variable becomes "1" and i will then run a if statement
saying if variable is 1 then run this code else run code b.
The problem I am having is that if there are 4 records the code checks through all of the 4 records and keeps changing the variable so
record 1 variable is 0
record 2 var is 0
" " " 1
" " " is 0
so although the records for a given order number does have a checked box the code wont recognise that.
Can yiu guys help me out on what i can do or what code i can add my minds gone all blank on this.
Thanks
I have a small issue,
I am trying to run a sql statement in vba in which it selects all the records in a table related to a order Id number.
I then want it loop through all the records and check for a check box which is selected.
if its selected then "A" variable becomes "1" and i will then run a if statement
saying if variable is 1 then run this code else run code b.
The problem I am having is that if there are 4 records the code checks through all of the 4 records and keeps changing the variable so
record 1 variable is 0
record 2 var is 0
" " " 1
" " " is 0
so although the records for a given order number does have a checked box the code wont recognise that.
Can yiu guys help me out on what i can do or what code i can add my minds gone all blank on this.
Thanks