G
Guest
Hi,
i have a table with cloumns Dates, Te001, Te002, Te003 etc.....
In the dates column is a list of future dates. In the other columns are tick
boxes set to on or off.
I want a command button on a form to use part of the code to check whether a
specific box is ticked or not for a certain date.
I then want furhter code to follow depending on the result.
I decided to use a variable called DateTakenTrueFalse to contin this value
which can only be true or false (1 or 0)
I tried a DoCmd.runSQL ("SELECT Te003 FROM tblDates WHERE Dates = #" &
DateTakenTest & "#")= DateTakenTrueFalse
but this didn't work.
Any help would come highly appreciated.
Many thanks for your time.
i have a table with cloumns Dates, Te001, Te002, Te003 etc.....
In the dates column is a list of future dates. In the other columns are tick
boxes set to on or off.
I want a command button on a form to use part of the code to check whether a
specific box is ticked or not for a certain date.
I then want furhter code to follow depending on the result.
I decided to use a variable called DateTakenTrueFalse to contin this value
which can only be true or false (1 or 0)
I tried a DoCmd.runSQL ("SELECT Te003 FROM tblDates WHERE Dates = #" &
DateTakenTest & "#")= DateTakenTrueFalse
but this didn't work.
Any help would come highly appreciated.
Many thanks for your time.