Hi
I'm trying to send a string from a form to an SQL in a report.
This one works:
If cmbLocation.Enabled = False Then
Asset_Loc = "Like '*'"
Else
Asset_Loc = "= '" & cmbLocation & "'"
End If
but not this one:
If cmbLocation.Enabled = False Then
Asset_Loc = "Paris" Or "Rome"
Else
Asset_Loc = "= '" & cmbLocation & "'"
End If
Any help appreciated
Cheers
Luigi
I'm trying to send a string from a form to an SQL in a report.
This one works:
If cmbLocation.Enabled = False Then
Asset_Loc = "Like '*'"
Else
Asset_Loc = "= '" & cmbLocation & "'"
End If
but not this one:
If cmbLocation.Enabled = False Then
Asset_Loc = "Paris" Or "Rome"
Else
Asset_Loc = "= '" & cmbLocation & "'"
End If
Any help appreciated
Cheers
Luigi