K
Kodawari
I am using a form to collect criteria for a query. The form contains 3
elements for the query: 1) an ID number (the sequential number assigned to
the record by Access when created), 2) a beginning and ending date range, and
3) a name field. In the query, I have used the “forms object†to pull the
data from the form. However, if I place criteria (using the forms object) on
more than one field in the query table, it does not pull the data from the
form (no data at all). If I put the criteria on only one field in the query
table, the query pulls the data from the form just fine (for just that one
element).
Is there some special means to tell Access to accept data from multiple
inputs on a form for a query (using the “forms objectâ€)? Can access accept
the fields that are populated on the form and ignore the fields that are left
blank? Is this the ideal method to do this or is there a better way?
Examples of two of the criteria (in separate fields) being used on the query
table are as follows:
=[Forms]![Q&A data query]![Q&AID]
Between[Forms]![Q&A data query]![date_from] and[forms]![Q&A data
query]![date_to]
Any help would be so much appreciated.
Thanks!!
elements for the query: 1) an ID number (the sequential number assigned to
the record by Access when created), 2) a beginning and ending date range, and
3) a name field. In the query, I have used the “forms object†to pull the
data from the form. However, if I place criteria (using the forms object) on
more than one field in the query table, it does not pull the data from the
form (no data at all). If I put the criteria on only one field in the query
table, the query pulls the data from the form just fine (for just that one
element).
Is there some special means to tell Access to accept data from multiple
inputs on a form for a query (using the “forms objectâ€)? Can access accept
the fields that are populated on the form and ignore the fields that are left
blank? Is this the ideal method to do this or is there a better way?
Examples of two of the criteria (in separate fields) being used on the query
table are as follows:
=[Forms]![Q&A data query]![Q&AID]
Between[Forms]![Q&A data query]![date_from] and[forms]![Q&A data
query]![date_to]
Any help would be so much appreciated.
Thanks!!