Run Query through a form interface

  • Thread starter Thread starter umdloti
  • Start date Start date
U

umdloti

Guest
I have a query with the the following criteria.

Between[Start Date] and [End Date] for a field Period.
[Type] for a field Container.

Can I represent these on a form so that I can
key them all in and see them on a form before submitting the query. ie so that I can make changes if I can see that 1 of the criteria was keyed in incorrectly.
 
Create a form called frmCriteria. Make 3 unbound text boxes on this form: txtStartDate,txtEndDate, and txtType.
In your query's criteria row, under your Date field, type:
Between [Forms]![frmCriteria]![txtStartDate] And [Forms]![frmCriteria]![txtEndDate]
Under Type field, type:
[Forms]![frmCriteria]![txtType]
Then Make a command button to run the query on this frmCriteria.
 

Users who are viewing this thread

Back
Top Bottom