Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 4th, 2004, 06:25 PM
ironchef ironchef is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Cleveland
Posts: 112 ironchef User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 14 m 34 sec
Reputation Power: 7
filtering report with a listbox

I am trying to run a report - when the report is selected a form pops up (JobSortList) with a listbox (JobList) showing values it pulled from a query (qryJobABT). I need to be able to select one or multiple values from a listbox then filter and display it on the report (rptJobABT).

Form Code (frmJobABT):
Private Sub Preview_Click()
DoCmd.OpenReport "rptJobABT",acViewPreview, ,
"((qryJobABT.JobID=1))"
End Sub

Report Code (rptJobABT):
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There is no data for this report. Canceling report..."
Cancel = -1
End Sub

Private Sub Report_Close()
DoCmd.close acForm, "JobSortList"
End Sub

Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "JobSortList", , , , , acDialog, "Active & Being Trained Volunteers"
If Not IsLoaded("JobSortList") Then
Cancel = True
End If
End Sub

Any help would be greatly appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > filtering report with a listbox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT