Hi all,
I'm hoping someone can point me in the right direction with a query. I am currently developing a database to capture customer complaints. At the moment - the complaint is assigned an autonumber - which works well enough but I was wandering if it is possible to change this.
I would like to assign a reference number based on the following -
1. Selected field in a drop down box on the form (this would be the channel, eg mail, email, phone, etc)
2. 4 Digit Code associated with the employee (this is stored in a table with the employees name).
3. Date & Time as "ddmmyyhhmmss"
This would generate a reference number something like -
EM1399200406122236
On the form I have cboChannel (part 1)
lstEmployee (listbox) - contains the employee name. the pin code is in tblEmployees, field is "Login_Code" - I guess I would use a DLOOKUP function to return the employee login code based on the name selected in the list box (part 2).
When a button is clicked...I would like to MsgBox the result, write the result to a text box and also create a new record in tblEnquiry with the Primary Key field ("Reference_No") containing the value.
Could anyone offer any advice to start me off?
Thanks in advance
Rob
I'm hoping someone can point me in the right direction with a query. I am currently developing a database to capture customer complaints. At the moment - the complaint is assigned an autonumber - which works well enough but I was wandering if it is possible to change this.
I would like to assign a reference number based on the following -
1. Selected field in a drop down box on the form (this would be the channel, eg mail, email, phone, etc)
2. 4 Digit Code associated with the employee (this is stored in a table with the employees name).
3. Date & Time as "ddmmyyhhmmss"
This would generate a reference number something like -
EM1399200406122236
On the form I have cboChannel (part 1)
lstEmployee (listbox) - contains the employee name. the pin code is in tblEmployees, field is "Login_Code" - I guess I would use a DLOOKUP function to return the employee login code based on the name selected in the list box (part 2).
When a button is clicked...I would like to MsgBox the result, write the result to a text box and also create a new record in tblEnquiry with the Primary Key field ("Reference_No") containing the value.
Could anyone offer any advice to start me off?
Thanks in advance
Rob