VBA to Update checkbox if another checkbox is ticked!

Tigereyes

New member
Local time
Today, 14:30
Joined
May 24, 2012
Messages
3
Hello,
I am nearlly there with a reconciliation database.
I have a parent form with 2 subforms on, each has various fields and showing all Non POSTED records. One field is a [MATCHED] tick box which I intend to tick when I reconcile the transaction. Once I have ticked a load of them I'd like a button, preferably on the parent form which when clicked updates the tick box [POSTED] for all records in both subforms. This then ensures these transactions are excluded when I refresh the form!
There must be a bit of code I can use to say iif([MATCHED]=yes,update[POSTED] to yes? A bit rusty but if you tell me what code to attach to this button I would be so very grateful :)
Thank you
 
Run a query:

UPDATE TableName SET Posted = True WHERE Matched = True
 

Users who are viewing this thread

Back
Top Bottom