Stevehewitt
IS-IT--Management
Guys,
I am trying to create a normal query with a "DateCompleted" field. Users will want to enter in various criteria for this, but due to constraints within the reporting I need to do this cannot be a parameter query. Instead I will need to base the criteria from data entered into a unbound field on a form that is open.
For this I would be looking at using
However, I need to have the query use "BETWEEN" in the criteria.
E.G. A user wants to search for all records between 01/01/2005 and 01/05/2005. Obviously in a normal query this would be:
BETWEEN #01/01/2005# AND #01/05/2005#
But as I am basing the criteria of the query on a open form using the FORMS! function, how would I go about adding the between command into the FORMS function?
Hope this makes sense!
Thanks in advance,
Steve.
I am trying to create a normal query with a "DateCompleted" field. Users will want to enter in various criteria for this, but due to constraints within the reporting I need to do this cannot be a parameter query. Instead I will need to base the criteria from data entered into a unbound field on a form that is open.
For this I would be looking at using
Code:
[Forms]![frmFormName]![txtTextBoxName]
However, I need to have the query use "BETWEEN" in the criteria.
E.G. A user wants to search for all records between 01/01/2005 and 01/05/2005. Obviously in a normal query this would be:
BETWEEN #01/01/2005# AND #01/05/2005#
But as I am basing the criteria of the query on a open form using the FORMS! function, how would I go about adding the between command into the FORMS function?
Hope this makes sense!
Thanks in advance,
Steve.