Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2004, 09:11 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parmeter query probs / confusion


I have a report that generates an output based on a parameter query whereby a user specifies the start date for all the courses details a user wants to output. What I want to do is store the value they enter and have this value listed on the report. Is this possible?

Gaz
__________________
Gaz
 
Old March 4th, 2004, 10:00 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you using a form for the user to input the dates? If so, leave the form open, and pass the values to the report like this in an unbound text box with the control source of:

="Between " & [Forms]![frmName]![StartDate] & " - " & [Forms]![frmName]![EndDate]

When the report closes, close the form which was used for the dates.

Regards,

Beth M
 
Old March 4th, 2004, 12:04 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having to keep the database as basic as possible as the end users of the database want to develop the database themselves at a later stage when they get up to speed with Access. Therefore, I am avoiding having to use Macros or VBA as much as possible. I thought it would be easy but making the database as basic as possible have caused no end of set back.

So, in answer to your question I am actually running a basic parameter based query specified in one of the database field values in the query design window

Gaz
 
Old March 4th, 2004, 12:10 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Unfortunately, I don't believe you can pass the values used as criteria unless you first use a form which actually holds the values while the report is opened. When you close the report, you would also close the form.

If you want more details, let me know.

Beth M





Similar Threads
Thread Thread Starter Forum Replies Last Post
pass-through query with input parmeter jimmy Access 4 February 8th, 2018 10:21 AM
Pong probs --- Help... ironchef BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 6 February 21st, 2009 04:12 PM
More session_start() probs LaVey Beginning PHP 13 March 4th, 2007 10:20 AM
Active X Script - Exec St Proc w\ Output Parmeter lwendt33 SQL Server DTS 0 February 1st, 2005 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.