D
David M. Fizer
Can someone please tell me what this means. I have used it in a old
database but since then have change the name of my tables and forms and am
not sure what to change in this case statement to get it to work.
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 "rptNestle T-Wing", acViewPreview, , "UPC = '"
& StrUPC & "'"
End Select
Next varSelectedUPC
End Sub
Thank you in advance,
David
database but since then have change the name of my tables and forms and am
not sure what to change in this case statement to get it to work.
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 "rptNestle T-Wing", acViewPreview, , "UPC = '"
& StrUPC & "'"
End Select
Next varSelectedUPC
End Sub
Thank you in advance,
David