pokeymonsc
Technical User
I have a query that uses an input from a form, the results being all people in a selected pay-grade. Since the field contains paygrade and step (04/05, 10/02, etc.)and I want all persons in paygrade 04 I use the following code:
Like [forms]![frmGradeSelect]![cboGradeBegin] & "*"
This works! When I run the query I select the paygrade (09) and get all 09's reguardless of what step they are.
Now the question: I'd like to be able to select a range of paygrades; say 09 to 12 and a query would normally use 'Between ... and', something like this:
Between Like [forms]![frmGradeSelect]![cboGradeBegin] & "*" And Like [forms]![frmGradeSelect]![cboGradeEnd] & "*"
The problem is that it won't run like this and I can't seem to find how to bracket the expression to make it work.
Something like:
Between [Like [form ......] & "*"] and [like .....].(Doesn't run like this or with ( or with{, etc.)\
is it possible to run like this in a query?
Anyone out there ever do something like this before???
Like [forms]![frmGradeSelect]![cboGradeBegin] & "*"
This works! When I run the query I select the paygrade (09) and get all 09's reguardless of what step they are.
Now the question: I'd like to be able to select a range of paygrades; say 09 to 12 and a query would normally use 'Between ... and', something like this:
Between Like [forms]![frmGradeSelect]![cboGradeBegin] & "*" And Like [forms]![frmGradeSelect]![cboGradeEnd] & "*"
The problem is that it won't run like this and I can't seem to find how to bracket the expression to make it work.
Something like:
Between [Like [form ......] & "*"] and [like .....].(Doesn't run like this or with ( or with{, etc.)\
is it possible to run like this in a query?
Anyone out there ever do something like this before???