NotAnExpert
Registered User.
- Local time
- Today, 23:29
- Joined
- Feb 3, 2017
- Messages
- 46
Good morning all
I have a query which populates a subform based on values as below:
main form txtOD, txtID textboxes with an afterupdate event on each set to requery the subform
I want the query to be able to show all records if nothing is entered in any of the 2 search boxes. I would have normally used NZ for this.
Ideally, I would like to limit/filter the list to show records where the OD field contains values that are:
between the value in txtOD +0.1 and txtOD - 0.2 on the mainform,
between the value in txtID -0.1 and txtID +0.2 on the mainform
for the criteria I have used:
Between ([forms]![frmDFGtools]![txtOD]-0.2) And ([forms]![frmDFGtools]![txtOD])
so I can filter based on txtOD alone as long as values exist, can filter based on txtID alone as long as values exist or both as long as they sit in the between values...
I just can't seem to get this one to work...
As always, any help would be great!
I have a query which populates a subform based on values as below:
main form txtOD, txtID textboxes with an afterupdate event on each set to requery the subform
I want the query to be able to show all records if nothing is entered in any of the 2 search boxes. I would have normally used NZ for this.
Ideally, I would like to limit/filter the list to show records where the OD field contains values that are:
between the value in txtOD +0.1 and txtOD - 0.2 on the mainform,
between the value in txtID -0.1 and txtID +0.2 on the mainform
for the criteria I have used:
Between ([forms]![frmDFGtools]![txtOD]-0.2) And ([forms]![frmDFGtools]![txtOD])
so I can filter based on txtOD alone as long as values exist, can filter based on txtID alone as long as values exist or both as long as they sit in the between values...
I just can't seem to get this one to work...
As always, any help would be great!