Pulling data from the form that created the report

K

kaosyeti

i have a db that i'm trying to construct to track customer contacts in a car
dealer. when finished, it needs to be VERY easy to use because most of the
end users are not that proficient with computers. that being said, my
methods described here may seem unnecessarily complicated but please believe
that they're necessary.

i have a form that asks a user to fill in a few fields and then creates a
query based on the data put into the form. the query is created, immediately
prints a report, then closes. part of the data from the form is a startdate
and enddate that is the range of time that the query calculates. the table
which holds the data has just one date field.

now, on my report i have a date range text box that is almost TOO accurate.
it pulls the lowest and highest values of any of the dates from the query and
looks like this:
="Date Range " & Min([qrycontactdata]![Date]) & " through " & Max(
[qrycontactdata]![Date])
the problem is that there may be no data for a customer on a specific date
towards the beginning of the month. so, for example, the report for october
of 05 may state "Date Range 10/03/2005 through 10/31/2005" when the user had
actually entered 10-01-05 as the startdate. this may not seem like a big
deal but when someone is looking at this report down the road, it won't make
sense to them why is doesn't reflect data from the first 2 days of the month.

so, how can write an expression that pulls the startdate from whatever the
person put into the form that creates the report? i'm more than happy to
email/upload this db for anyone who needs to see it to answer this question
(you'll just have to tell me where/how). Thanks.
 
K

kaosyeti

sorry everyone but as i was writing out my post, i thought of the solution.
it's particularly easy:
[Forms]![formparameters]![txtboxstartdate]
it didn't work at first because i didn't actually run the report, but just
looked at it in print view. i'm very new to access (obviously) so i'm sure
i'll have other questions real soon.
 

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