0

I have a very basic access database where a query returns the sales made within a set start date and a set end date.

The dates are set with two pop up boxes for the user to enter, first the start date, and then the end date.

I have a report running off the back of this.

How can I (using VBA) get at these dates then display them on the report - ie. the report says "Sales for Period:" and then shows the "from date" and the "to date" that the user input.

3
  • is this homework? also, you should be able to find this answer on google Commented Mar 23, 2010 at 23:19
  • it's a function I would like to add to an assignment at college, so kind of yes. Can't find an answer on google at my level unfortunately. Commented Mar 23, 2010 at 23:50
  • You can google anything instead of coming to SO-what's the point? Homework questions are OK when the user has part of the solution or made an attempt. Commented Mar 24, 2010 at 1:31

1 Answer 1

2

You may find this tutorial helpful. It shows how to use a form to capture parameters for queries and reports and access the parameter values in VBA.

Sign up to request clarification or add additional context in comments.

1 Comment

That's a really nice tutorial -- much better than the usual MS-hosted stuff.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.