view multiple reports

J

Jessica

Hello All,


I was wondering if it were possible to view two or more records that use
the same report seperatly. I have this for an event procedure for a
preview button

Private Sub Preview_Click()
0 Dim varSelectedUPC As Variant
Dim StrUPC As String

For Each varSelectedUPC In UPC.ItemsSelected
StrUPC = UPC.ItemData(varSelectedUPC)
Select Case StrUPC
Case "39000 48164"
DoCmd.OpenReport "Nestle T-Wing", acViewPreview, , "UPC = '"
& StrUPC & "'"
Case "06010 11292" To "06010 11588", "76808 52094", "76808
52138", "95059 00046" To "95059 00051"
DoCmd.OpenReport "Barilla", acViewPreview, , "UPC = '" &
StrUPC & "'"
End Select

Next varSelectedUPC
End Sub



I also have a print button and changed the acViewPreview to acViewormal
and prints out each report fine.


TIA,
Jess
 
J

Jeff Boyce

Jessica

That's an interesting way to look at it. I've always assumed that reports
use records, not the other way 'round.

You might need to pick up a third-party tool to "connect the dots" between
those... Speed Ferret (Black Moshannon) and Total Access Analyzer (FMS,
Inc.) come to mind.

Regards

Jeff Boyce
<Access MVP>
 
J

jahoobob

Posting to get this post to move down.
???? ????? "Jessica" (e-mail address removed) ?? ?????
???????:[email protected]
Hello All,


I was wondering if it were possible to view two or more records tha
use
the same report seperatly. I have this for an event procedure for a
preview button

Private Sub Preview_Click()
0 Dim varSelectedUPC As Variant
Dim StrUPC As String

For Each varSelectedUPC In UPC.ItemsSelected
StrUPC = UPC.ItemData(varSelectedUPC)
Select Case StrUPC
Case "39000 48164"
DoCmd.OpenReport "Nestle T-Wing", acViewPreview, , "UPC
'"
& StrUPC & "'"
Case "06010 11292" To "06010 11588", "76808 52094", "76808
52138", "95059 00046" To "95059 00051"
DoCmd.OpenReport "Barilla", acViewPreview, , "UPC = '" &
StrUPC & "'"
End Select

Next varSelectedUPC
End Sub



I also have a print button and changed the acViewPreview t
acViewormal
and prints out each report fine.


TIA,
Jess
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Case Statement 0
event procedure 2
SQL statement 10
case statement question please help 6
Case function 4

Top