Setting query criteria on form - text boxes

A

anamque

I am very new to VBA.

I have 4 fields: Analyst name, Beginning Date, End Date, and Accts blocked.

How would I set the form so the Analyst can go to the form - enter in the
beginning date and end date - and it will pull the accounts blocked during
the dates specified specific to the Analyst name given?

What is this called? they are all text boxes on the form.
 
K

KARL DEWEY

Use this criteria in the design view of the query feeding the form --
Analyst --
[Forms]![YourFormName]![TextBoxAnalyst]

AcctBlockDate --
Between CVDate([Forms]![YourFormName]![BeginDate]) AND
CVDate([Forms]![YourFormName]![EndDate])

Use your actual field and text box names.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top