Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2004, 09:22 AM
Authorized User
 
Join Date: Jan 2004
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Generating a report from more than one query

Hi

I want to generate a dynamic report that based on as specific set of queries.

At the moment each query exists as as subform in the report but some queries contain no data. Therefore I need the report to say something like (data contained within are from survey forms) "no replies to this question".

Could I use an IIF statement or would a VBA function work better. Would prefer to use VBA unsure how to go about it.

Many thanks
Reply With Quote
  #2 (permalink)  
Old March 31st, 2004, 06:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your best bet would probably be using the NoData event.
For example, you could have a label that is dependent on if there is data or not.

such as:
Code:
Private Sub Report_NoData(Cancel As Integer)
LabelX.Caption = "No replies to this question"
End Sub
Or have that label's visibility be based on the NoData
Eg: have it as Visible=False, then for the NoData event, have
Code:
Private Sub Report_NoData(Cancel As Integer)
LabelX.Visible = True
End Sub
I am a loud man with a very large hat. This means I am in charge
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sql express for generating the report !! alam1 Reporting Services 0 May 26th, 2007 11:11 PM
Generating a report from a combo box toddw607 Access 7 March 26th, 2007 12:38 PM
Is database necessary for generating report. radhekrishna BOOK: Professional Crystal Reports for VS.NET 0 January 8th, 2007 06:10 AM
Generating and loading report method Access 1 June 28th, 2005 10:45 AM
Generating a report from 'after update' fixitman Access VBA 5 August 30th, 2003 06:43 PM



All times are GMT -4. The time now is 11:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.