Hello all,
This may be really obvious to some, just not me. I'm trying to set the rowsource of a combobox to a new query when other comboboxes are updated and format the output. I tried this in the query builder and it works.
SELECT tblEmployeeInfo.EmployeeID, [Employee Last Name] & ", " & [Employee First Name] AS Expr1
FROM tblEmployeeInfo
ORDER BY [Employee Last Name] & "," & [Employee First Name];
The output returns "lastname, firstname"
I converted it into this in vb.
strSQL1 = "SELECT [tblEmployeeInfo].[EmployeeID], [Employee Last Name]" & ", " & "[Employee First Name] AS Expr1 FROM tblEmployeeInfo " & _
"WHERE [SupervisorID] = " & rst!SupervisorID & _
" ORDER BY [Employee Last Name]" & ", " & "[Employee First Name]"
The sql statment works but it does not format the output as a concatenated string "lastname, firstname".
any suggestions on getting the format right?
This may be really obvious to some, just not me. I'm trying to set the rowsource of a combobox to a new query when other comboboxes are updated and format the output. I tried this in the query builder and it works.
SELECT tblEmployeeInfo.EmployeeID, [Employee Last Name] & ", " & [Employee First Name] AS Expr1
FROM tblEmployeeInfo
ORDER BY [Employee Last Name] & "," & [Employee First Name];
The output returns "lastname, firstname"
I converted it into this in vb.
strSQL1 = "SELECT [tblEmployeeInfo].[EmployeeID], [Employee Last Name]" & ", " & "[Employee First Name] AS Expr1 FROM tblEmployeeInfo " & _
"WHERE [SupervisorID] = " & rst!SupervisorID & _
" ORDER BY [Employee Last Name]" & ", " & "[Employee First Name]"
The sql statment works but it does not format the output as a concatenated string "lastname, firstname".
any suggestions on getting the format right?