Date parameter

C

Carrie

On my form I have a command button to open up a report from a query. I
wanted to know if there was a way to add a date parameter to the command
button so when my report opens it only reflects that date?
 
A

Arvin Meyer MVP

Carrie said:
On my form I have a command button to open up a report from a query. I
wanted to know if there was a way to add a date parameter to the command
button so when my report opens it only reflects that date?

Sure the button code would look something like:

DoCmd.OpenForm "FormName", , , "DateField = #" & Me.txtDateField & "#"
 

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