Dear All,
Great forum!![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I have a the following senario.
Query - EnAllocationOverdue
Form - MainScreen
Within the query the field ENSTAT.UNI7LIVE_ENCASE is the one I wish to filter using the form.
In the form the fields AddSrch and SrchCrit are the fields the user fills in and this then should exclude the data from the query.
I have tried serveral variations on the field within the query.
It seems to work only when there are values within the form fields.
Here are some of the examples I have tried in the ENSTAT.UNI7LIVE_ENCASE query field.
1
2
3
4
None of the above give results when the fields are blank, only when they are filled in does it give results, i.e. the exclusion of the values within the form fields.
Any help would be greatly appreciated![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thank you![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Thank you,
Kind regards
Triacona
Great forum!
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I have a the following senario.
Query - EnAllocationOverdue
Form - MainScreen
Within the query the field ENSTAT.UNI7LIVE_ENCASE is the one I wish to filter using the form.
In the form the fields AddSrch and SrchCrit are the fields the user fills in and this then should exclude the data from the query.
I have tried serveral variations on the field within the query.
It seems to work only when there are values within the form fields.
Here are some of the examples I have tried in the ENSTAT.UNI7LIVE_ENCASE query field.
1
Code:
Not In ([Forms]![MainScreen].[AddSrch],[Forms]![MainScreen].[SrchCrit])
Code:
Not In (Nz([Forms]![MainScreen].[AddSrch],[Forms]![MainScreen].[SrchCrit]))
Code:
Nz(Not In([Forms]![MainScreen].[AddSrch],[Forms]![MainScreen].[SrchCrit]))
Code:
Not In (Nz([Forms]![MainScreen].[AddSrch]),Nz([Forms]![MainScreen].[SrchCrit]))
None of the above give results when the fields are blank, only when they are filled in does it give results, i.e. the exclusion of the values within the form fields.
Any help would be greatly appreciated
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thank you
![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Thank you,
Kind regards
Triacona