|
Question : MS Access - First and Last Name field into Full Name
|
|
I have two fields which I want to combine the data into one (FirstName and Last Name) to create another combo box which lists all names called Full Name. Full Name will be bound to the Customer ID field which is a number. I have the query working (pulling first name and last n ame from the Customers table) SELECT Customers.FirstName, Customers.LastName, [FirstName] & " " & [LastName] AS FullName FROM Customers; And the full name displays nicely in the list, but when I select a name, I get an error that says the value entered is wrong for this field (which I interpret to mean it's expecting a number since the bound field is Customer ID and is an autonumber.) But I need the name to remain associated with the Customer ID. Control Source is CustomerID from the Orders Table Query is listed above. Column Count is 3 Column Widths are 0";0";2" Bound Column is 1 (which is the CustomerID field from the Orders Table)
|
|
Answer : MS Access - First and Last Name field into Full Name
|
|
Then your combo query should be:
SELECT CustomerID, [FirstName] & " " & [LastName] AS FullName FROM Customers; Columns 2 Widths, 0";2" Bound Column 1
assuming CustomerID is in Customers and is also the field in another table that you want to 'connect' to.
|
|
|
|