Hi,
In my form, I have an option group with two radio buttons like this:
OptionFrame
- rdoDetail (option value = 1)
- rdoSummary (option value = 2)
I want to use the selected radio button values in my query criteria, but it doesn't retrieve the data correctly.
detail and summary are boolean type columns
What am I doing wrong? Please help!
Thank you in advance,
SJH
In my form, I have an option group with two radio buttons like this:
OptionFrame
- rdoDetail (option value = 1)
- rdoSummary (option value = 2)
I want to use the selected radio button values in my query criteria, but it doesn't retrieve the data correctly.
detail and summary are boolean type columns
Code:
SELECT * FROM myTable
WHERE detail = IIf([Forms]![myForm]![OptionFrame]=1,True,False))
AND summary = IIf([Forms]![myForm]![OptionFrame]=1,False,True))
What am I doing wrong? Please help!
Thank you in advance,
SJH