Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 April 14th, 2004, 11:59 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default use of having clasue in reports

Hi
I'm new to VBA. I'm opening a report using VBA. The last parameter of the following line is the where clause:

DoCmd.OpenReport "rpt_facilityVisitorComplaintInformation", acViewPreview, (having clause)

I'm just wondering that is there any way that I can use having clause while opening the report.
 
Old April 15th, 2004, 09:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Actually it's

DoCmd.OpenReport "rpt_facilityVisitorComplaintInformation", acViewPreview, (filter), (having clause)

Or WHERE clause. The filter can be left out but you must include the extra comma if you leave it out. Yes, you can have a WHERE clause. What exactly do you want yours to be?

strWhere = "your criteria here"
DoCmd.OpenReport "rpt_facilityVisitorComplaintInformation", acViewPreview, , strWhere


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get reports in crystal reports using ASP3.0 candy133 Classic ASP Basics 2 January 26th, 2006 08:26 AM
Comparitive Reports in Crystal Reports tarunm Crystal Reports 1 January 21st, 2006 01:08 AM
comparision among crystal reports and Data reports avats Crystal Reports 0 April 13th, 2005 01:01 PM
How to create/design reports with crystal reports BassmaniaQ Crystal Reports 0 December 14th, 2004 04:58 AM
Reports Manager does not list reports hinesweb BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 25th, 2004 04:39 AM





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