Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > BOOK: Access 2010 VBA Programmer's Reference
|
BOOK: Access 2010 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2010 Programmer's Reference by Teresa Hennig, Rob Cooper, Geoffrey L. Griffith, Jerry Dennison; ISBN: 978-0-470-59166-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2010 VBA Programmer's Reference 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 July 8th, 2012, 03:16 AM
Registered User
 
Join Date: Jul 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Question Parameters: Page 90, Open a Report Based on a Parameters Query

Hello,
I am fresh to Access and Macro. Now I'm reading on Page 90 but cann't find the "Parameters" in macro design.

OpenReport
Report Name:
View: Report
Filter Name:
Where=
Window Mode: Normal

But no Parameters there. Did I miss something?
Please help.
 
Old July 8th, 2012, 04:30 AM
Authorized User
 
Join Date: Oct 2010
Posts: 64
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Hi John,

The report you are opening using the OpenReport macro command must be bound to a query that requires a parameter. To create a parameter in a query, enter it in the criteria section as well as explicitly in the Parameters dialog box. E.g. Enter [Enter ID] in the criteria column of whatever the primary key field is. Click the Parameters button within the Query Tools tab, enter [Enter ID] and select data type as Long Integer.
Ensure the form or report has this query as its Record Source. Now when you create the macro using the OpenReport or OpenForm commands you can click the Update Parameters hyperlink at the bottom right of the command's form. This will add a Parameters section to the command's form requesting the value or expression for the paramater [Enter ID].

HTH.

Malc.
The Following User Says Thank You to malcolmdixon For This Useful Post:
JohnLiu2012 (July 9th, 2012)
 
Old July 9th, 2012, 02:35 AM
Registered User
 
Join Date: Jul 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up

Thanks Malcolm,

I got the parameters.

John





Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report with Parameters inoonjiffry Crystal Reports 0 September 7th, 2008 06:25 AM
Using Parameters in report burgos Crystal Reports 1 November 26th, 2007 03:26 AM
Getting Query parameters from a Form DrCruces Access 6 December 13th, 2006 05:42 AM
Form Input, Parameters, Report Based on Query DavidWE Access VBA 2 November 6th, 2006 10:36 AM
Access Forms Open Method of Passing Parameters androman Access VBA 8 September 22nd, 2004 09:04 AM





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