WalterInOz
Registered User.
- Local time
- Tomorrow, 03:50
- Joined
- Apr 11, 2006
- Messages
- 93
I have a database which contains hundreds of publications, all listed on the main (continuous) form.
To make it a little easier for the users I thought I'd let them select the main 'areas of interest' by ticking one or more radio buttons (7).Tthe result should be that only those records are shown that have been tagged for the selected area(s).
There are a few issues that I cannot get my head around and I'd appreciate advice. The main problem (I think) is that I don't know what I should write in the 'where' part of my query. I currently have this:
Is Not Null And [Forms]![frmPubInSelectedArea]![OptionQu]
Seven times, for 7 buttons, on different lines, and yes, with different names for the Option Buttons.
This works OK the first time I select a button. After deselecting the same button the query still yields the same records: the value of the button goes from Null, to -1 to 0.
I think I understand what happens, but I have not been able to find how I should refer to the '0-state' in the query. It's clearly not the same as Null, but what is it? Or is there a better way to achieve my goal then buttons?
thanks for your advice
To make it a little easier for the users I thought I'd let them select the main 'areas of interest' by ticking one or more radio buttons (7).Tthe result should be that only those records are shown that have been tagged for the selected area(s).
There are a few issues that I cannot get my head around and I'd appreciate advice. The main problem (I think) is that I don't know what I should write in the 'where' part of my query. I currently have this:
Is Not Null And [Forms]![frmPubInSelectedArea]![OptionQu]
Seven times, for 7 buttons, on different lines, and yes, with different names for the Option Buttons.
This works OK the first time I select a button. After deselecting the same button the query still yields the same records: the value of the button goes from Null, to -1 to 0.
I think I understand what happens, but I have not been able to find how I should refer to the '0-state' in the query. It's clearly not the same as Null, but what is it? Or is there a better way to achieve my goal then buttons?
thanks for your advice