Hi there,
I can use the left function to strip characters from different fields and concatenate them into one field. This is easily done using a query however when I try to do this using an entry form, I seem to be getting error messages such as: "You must enter a value in the tblCustomer.CustomerID field. I have used the following expression in the control source "=Left([Customer_Surname],3) & Left([Customer_Forename],3)".
This works in the query, it also works in the form however it does not add the data to the table.
------------
Second question.
The image shows an example of data given. The primary key has been created using the first name, two characters of the last name as well as age. I personally don't think this is a good example of a primary key. Would a better approach be to use Auto Number for the primary key?
There is also the issue of getting a username the same as a previous one and there are numbers being repeated.
Thank you.
I can use the left function to strip characters from different fields and concatenate them into one field. This is easily done using a query however when I try to do this using an entry form, I seem to be getting error messages such as: "You must enter a value in the tblCustomer.CustomerID field. I have used the following expression in the control source "=Left([Customer_Surname],3) & Left([Customer_Forename],3)".
This works in the query, it also works in the form however it does not add the data to the table.
------------
Second question.
The image shows an example of data given. The primary key has been created using the first name, two characters of the last name as well as age. I personally don't think this is a good example of a primary key. Would a better approach be to use Auto Number for the primary key?
There is also the issue of getting a username the same as a previous one and there are numbers being repeated.
Thank you.