Recordset in a form (1 Viewer)

Mish_h

Registered User.
Local time
Yesterday, 16:41
Joined
Mar 30, 2006
Messages
18
Hi. I have a form that retrieves a number of records from a query based on a filter.
I then have a checkbox that i would like to be checked or unchecked based on the value of one of the
attributes in the returned recordset. I was wondering how this could be done?

Thanks
 

Dennisk

AWF VIP
Local time
Today, 00:41
Joined
Jul 22, 2004
Messages
1,649
Use the on current event, so you can run code for each record displayed.
In your case

Code:
If me!YourColumnName = YourConditionhere then
   me!YourCheckboxNameHere = True/False
else
   me!YourCheckboxNameHere = False/True
Endif
 

Mish_h

Registered User.
Local time
Yesterday, 16:41
Joined
Mar 30, 2006
Messages
18
Thanks for that.
This works if i have the default view set to single form. However when i switch it to continuous forms then either all the checkboxes are ticked or none of them are ticked. This seems to be dependent on the value of the first record.
 

Users who are viewing this thread

Top Bottom