Locopete99
Registered User.
- Local time
- Today, 08:43
- Joined
- Jul 11, 2016
- Messages
- 163
Hi all,
I have an access database that lists numerous customers in a customers table.
This is used in conjunction with a register form to list the customer that a record relates to.
I've been asked if I can change the current drop down to change the customer name to add in the customer postcode where we have multiple customers with the same name but different postcodes (different branches)
I've had to kick every one out already to add in a new field on my back end, which I have created as a text field.
I've tried to run a query to update the table and concatenate the Customer Name and Postcode fields with a space between them. Problem is my code has literally entered "Customer Name" and "Postcode" in the field.
Can someone look at my query code and give me a pointer please. SQL is not a language im great at although I am learning more.
I've tried taking the speech marks off but I get an error for missing syntax where I have Account Name and Postcode.
These are my field names though, and not strings that I want to enter.
P.s I know that Customer Name is not a great field name, but I was in a rush when I created it. Not an excuse for sloppy work though I agree!
I have an access database that lists numerous customers in a customers table.
This is used in conjunction with a register form to list the customer that a record relates to.
I've been asked if I can change the current drop down to change the customer name to add in the customer postcode where we have multiple customers with the same name but different postcodes (different branches)
I've had to kick every one out already to add in a new field on my back end, which I have created as a text field.
I've tried to run a query to update the table and concatenate the Customer Name and Postcode fields with a space between them. Problem is my code has literally entered "Customer Name" and "Postcode" in the field.
Can someone look at my query code and give me a pointer please. SQL is not a language im great at although I am learning more.
Code:
UPDATE Tbl_Accounts SET Tbl_Accounts.Accpcode = "Account Name" & " " & "Postcode";
I've tried taking the speech marks off but I get an error for missing syntax where I have Account Name and Postcode.
These are my field names though, and not strings that I want to enter.
P.s I know that Customer Name is not a great field name, but I was in a rush when I created it. Not an excuse for sloppy work though I agree!