Combo box wont work after upsizing to SQL

morlan

Registered User.
Local time
Today, 18:48
Joined
Apr 23, 2003
Messages
143
I originally had an normal access database and then I split in to SQL and an ADP file.

I have a combo box on my form that looks to the SalesExec table and puts the Forename and Lastname into one column in the combo. The row source looked like this:

Code:
SELECT tblSalesExec.EmployeeID, [tblSalesExec.Forename] & " " & [tblSalesExec.Surname], FROM tblSalesExec ORDER BY [Forename];

Now, after converting to SQL/ADP using the upsizing wizard, when I click on the combo box I get the following error: Invalid column name

The row source had changed to this:


Code:
SELECT tblSalesExec.EmployeeID, "tblSalesExec.Forename"+' '+"tblSalesExec.Surname", FROM tblSalesExec ORDER BY Forename;


Any adise? The tables are definatley available? IS there something I have to do to the row source to get this working?
 
SELECT tblSalesExec.EmployeeID, "Forename"+', '+"Surname" FROM tblSalesExec ORDER BY Forename;

is the correct answer
 

Users who are viewing this thread

Back
Top Bottom