Gerbers404
Programmer
Hello,
Having a little bit of a problem here.
I have an option group with 3 options, MN, CA, and Both.
On the mouse down event of those buttons, I have them populate a (hidden) text box. I reference this text box as the criteria for a query (in the qurey builder) that I run a report from.
My problem is that I cannot seem to find the appropriate phrase to populate the text box with that will give me the information for the "Both" condition. For the MN option button, it places MN in the text box. For CA, it places CA. These work fine and give me the info i'm looking for. However, everything I've tried for the "Both" option returns no records and gives me an empty report.
I've tried 'Is Not Null', and 'MN or CA', '<>""', and '<>0' to name a few. None of these work. When I actually put 'Is Not Null' or 'MN or CA' into the criteria field of the query builder, everything works fine. It just does not work when I reference the textbox that has either of these two phrases in it.
I know I could store a bunch of SQL statements and call them, but it seem to me that this would be a faster fix if I could get it to work.
Does anyone have any ideas that could help me out?
Thank you for your time.
Gerbers404
Having a little bit of a problem here.
I have an option group with 3 options, MN, CA, and Both.
On the mouse down event of those buttons, I have them populate a (hidden) text box. I reference this text box as the criteria for a query (in the qurey builder) that I run a report from.
My problem is that I cannot seem to find the appropriate phrase to populate the text box with that will give me the information for the "Both" condition. For the MN option button, it places MN in the text box. For CA, it places CA. These work fine and give me the info i'm looking for. However, everything I've tried for the "Both" option returns no records and gives me an empty report.
I've tried 'Is Not Null', and 'MN or CA', '<>""', and '<>0' to name a few. None of these work. When I actually put 'Is Not Null' or 'MN or CA' into the criteria field of the query builder, everything works fine. It just does not work when I reference the textbox that has either of these two phrases in it.
I know I could store a bunch of SQL statements and call them, but it seem to me that this would be a faster fix if I could get it to work.
Does anyone have any ideas that could help me out?
Thank you for your time.
Gerbers404