G
Guest
Hello,
We're trying to incorporate SQL code in VBA. Our attempts looks like this:
Sub test()
Dim results As Variant
results = "SELECT inventorytest.Product" & _
"FROM inventorytest" & _
"WHERE (((inventorytest.Product) Like " * a * "));"
End Sub
When we run this, we get a run-time error "13": type mismatch
Thanks in advance for your help,
Ellen
;-D
We're trying to incorporate SQL code in VBA. Our attempts looks like this:
Sub test()
Dim results As Variant
results = "SELECT inventorytest.Product" & _
"FROM inventorytest" & _
"WHERE (((inventorytest.Product) Like " * a * "));"
End Sub
When we run this, we get a run-time error "13": type mismatch
Thanks in advance for your help,
Ellen
;-D