J
Jessica
Hello,
I have this as a case function in one of my forms but it returns a
run-time error 13 Type mismatch. Can anyone tell me what am I doing wrong?
Thank you,
Jess
Private Sub command15_Click()
Dim varSelectedUPC As Variant
Dim lngUPC As Long
For Each varSelectedUPC In UPC.ItemsSelected
lngUPC = UPC.ItemData(varSelectedUPC)
Select Case lngUPC
Case "06010 11292" To "06010 11588", "76808 52094", "76808 52137"
DoCmd.OpenReport "report 1", acViewPreview, , "UPC = '" &
lngUPC & "'"
I have this as a case function in one of my forms but it returns a
run-time error 13 Type mismatch. Can anyone tell me what am I doing wrong?
Thank you,
Jess
Private Sub command15_Click()
Dim varSelectedUPC As Variant
Dim lngUPC As Long
For Each varSelectedUPC In UPC.ItemsSelected
lngUPC = UPC.ItemData(varSelectedUPC)
Select Case lngUPC
Case "06010 11292" To "06010 11588", "76808 52094", "76808 52137"
DoCmd.OpenReport "report 1", acViewPreview, , "UPC = '" &
lngUPC & "'"