Hi
I am using the following code to select rows in a countinuoes from. It is used as a filter for printing my reports.
DoCmd.RunCommand acCmdSaveRecord
DoCmd.RunSQL "UPDATE TAfdansen SET TAfdansen.[Selecteer] = True WHERE (((TAfdansen.[Select])=False));"
DoCmd.RunSQL "UPDATE TAfdansen SET TAfdansen.[Selecteer] = False WHERE (((TAfdansen.[Selecteer])=True));"
DoCmd.Requery
Problem is that the table is updated with the flag to true after I checked/unchecked the next.
So Im always 1 step beyond (madness
)
How can I fix this
any suggestions are more than welcome
Alaric
I am using the following code to select rows in a countinuoes from. It is used as a filter for printing my reports.
DoCmd.RunCommand acCmdSaveRecord
DoCmd.RunSQL "UPDATE TAfdansen SET TAfdansen.[Selecteer] = True WHERE (((TAfdansen.[Select])=False));"
DoCmd.RunSQL "UPDATE TAfdansen SET TAfdansen.[Selecteer] = False WHERE (((TAfdansen.[Selecteer])=True));"
DoCmd.Requery
Problem is that the table is updated with the flag to true after I checked/unchecked the next.
So Im always 1 step beyond (madness

How can I fix this
any suggestions are more than welcome
Alaric