Need correct SQL syntax for command object

sfx

Well-known member
Joined
Jan 31, 2006
Messages
46
Programming Experience
Beginner
Hello All,

I was wondering if someone might be able to assist me with the correct syntax for a particular SQL statement when creating an OleDBCommand object? I am trying to locate anything similar to a parameter that is mapped to the SelectedItem of a ComboBox. An example of what I am attempting to do is below:

"WHERE BusinessName LIKE '%'[@BusinessName]'%'"

Can anyone help me with the correct syntax for this type of clause?

Cheers,

sfx
 
Need to concatenate the SQL together.

"WHERE BusinessName LIKE '%' + [@BusinessName] + '%'"

-tg
 
no prob... bill is in the mail... ;)

-tg
 
Back
Top