A
alianzista84
As the subject line describes, I'm having trouble doing that. Eve
though I select many items in the list box, only the item that i
highest in the list box gets itsinformation displayed on the report
How do I make so that all the selected items in the list box ge
their proper information displayed on the report
Thanks
P.S. This is a snippet of the code I have for the display repor
button..
Private Sub PrintButton_Click(
Const RName = "rptByApp
Const RName2 = "rptBySvr
Const RName3 = "rptByDB
Dim ProjName, WClause, Proj, c As Contro
Set c = Me!lboProjec
Select Case Me!optSelectionTyp
Case 1 ' Application
Select Case Me!optIssueStatu
Case 1 ' ALL ISSUE
Me!NowPrinting.Visible = Tru
For Each ProjName In c.ItemsSelecte
Me![NowPrinting].Caption = "Now Printin
Selection(s)
WClause = "[DateOpened] Between #" &
Me![Start] & "# AND #" &
Me![End] & "# AND [Phase] = '"
c.ItemData(ProjName) & "'
DoCmd.OpenReport
ReportName:=RName,
WhereCondition:=WClause,
view:=Me![OutputTo
ProjName = ProjName +
Next ProjNam
though I select many items in the list box, only the item that i
highest in the list box gets itsinformation displayed on the report
How do I make so that all the selected items in the list box ge
their proper information displayed on the report
Thanks
P.S. This is a snippet of the code I have for the display repor
button..
Private Sub PrintButton_Click(
Const RName = "rptByApp
Const RName2 = "rptBySvr
Const RName3 = "rptByDB
Dim ProjName, WClause, Proj, c As Contro
Set c = Me!lboProjec
Select Case Me!optSelectionTyp
Case 1 ' Application
Select Case Me!optIssueStatu
Case 1 ' ALL ISSUE
Me!NowPrinting.Visible = Tru
For Each ProjName In c.ItemsSelecte
Me![NowPrinting].Caption = "Now Printin
Selection(s)
WClause = "[DateOpened] Between #" &
Me![Start] & "# AND #" &
Me![End] & "# AND [Phase] = '"
c.ItemData(ProjName) & "'
DoCmd.OpenReport
ReportName:=RName,
WhereCondition:=WClause,
view:=Me![OutputTo
ProjName = ProjName +
Next ProjNam