Passing date via form to passthrough query

D

dtoney

I have a passthrough query where I have to manually edit the dates for the
information I need. I would like to utilze a form & enter the start & end
dates there & allow the SQL to be updated via the form.

Please advise how best to do this.

Thanks!
 
B

Bob Barrows [MVP]

dtoney said:
I have a passthrough query where I have to manually edit the dates
for the information I need. I would like to utilze a form & enter the
start & end dates there & allow the SQL to be updated via the form.

Please advise how best to do this.
You will need to use VBA to modify the Sql property of the querydef object.
There are examples in online help (if you can find them - use the table of
contents and expand the Programming with VB section) as well as plenty to be
found via a google search.
 

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