embedded sql statement

G

george

Hi,
I have this query:
SELECT [client_LName] & ", " & [client_FName] AS
CompleteName

if I want to embed it to a vba statement how do I deal
with the ", " part?

(ie I cannot write cboClients.RowSource = "(my sql
statement as is)"

Thanks, George
 
R

Ron Weiner

Try
strSql = "SELECT [client_LName] & ', ' & [client_FName] AS CompleteName"
Or
strSql = "SELECT [client_LName] & "", "" & [client_FName] AS
CompleteName"

Either will work. Then you can write;
cboClients.RowSource = strSql

Ron W
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top