Access Virgin
Registered User.
- Local time
- Today, 06:05
- Joined
- Apr 8, 2003
- Messages
- 77
I am trying to use a multi select list box to create the WHERE criteria for a query, the criteria will be one name or more, so far I can get the WHERE part created except for the " " around the names
my code
listvalues = listvalues & "(((Table1.RaisedBy)=" & Me.RaisedByList.Column(0, I) & ")) OR "
my result
(((Table1.RaisedBy)=JOE BLOGGS)) OR (((Table1.RaisedBy)=DAVE SMITH))
required result
(((Table1.RaisedBy)="JOE BLOGGS")) OR (((Table1.RaisedBy)="DAVE SMITH"))
Can this be done?
my code
listvalues = listvalues & "(((Table1.RaisedBy)=" & Me.RaisedByList.Column(0, I) & ")) OR "
my result
(((Table1.RaisedBy)=JOE BLOGGS)) OR (((Table1.RaisedBy)=DAVE SMITH))
required result
(((Table1.RaisedBy)="JOE BLOGGS")) OR (((Table1.RaisedBy)="DAVE SMITH"))
Can this be done?