I have a database with a table of customer details and then a table of service calls to those customers.
Following advice from these forums I used an 'autonumber ID' for the customer table as the PK
In the service calls table there is an 'autonumber servicecall ID' field as the PK, and has the customer ID as the foreign key.
However, when fellow employees will enter servicecall details they wont have the autonumber ID to hand, they will have the address. As a result I have included a field 'customer address' in my servicecalls table and made it a 'lookup field' to the customer street address field in the customers table, so if an employee types in '59 H' it will bring up '59 High street'
Can I make it so that once they've clicked the right address, access automatically populates the 'customer ID' field with the corresponding ID number?
Or, if I am using this look up, does that not eliminate problems of people inputting addresses incorrectly and then I can just use the customer address as my primary key and not have to worry about linking back to the autonumber customer ID?
your thoughts on this are much appreciated.
Following advice from these forums I used an 'autonumber ID' for the customer table as the PK
In the service calls table there is an 'autonumber servicecall ID' field as the PK, and has the customer ID as the foreign key.
However, when fellow employees will enter servicecall details they wont have the autonumber ID to hand, they will have the address. As a result I have included a field 'customer address' in my servicecalls table and made it a 'lookup field' to the customer street address field in the customers table, so if an employee types in '59 H' it will bring up '59 High street'
Can I make it so that once they've clicked the right address, access automatically populates the 'customer ID' field with the corresponding ID number?
Or, if I am using this look up, does that not eliminate problems of people inputting addresses incorrectly and then I can just use the customer address as my primary key and not have to worry about linking back to the autonumber customer ID?
your thoughts on this are much appreciated.