crhodus
04-23-2001, 12:49 PM
On one of my forms, I have field called CallID. CallID is also the primary key for my table.
I have the default value for CallID set to :
=[Forms]![Contacts]![Name] & " - " & Rnd()
Each time the user enters a new call, the CallID value becomes the Company Name plus a random number. (Ex: ACME Trucks - 0.7642685)
Several different users will be using this program to enter data. At the end of each week each user will send his/her data to the home office so that it can be imported into a master file.
Can anyone see any problems that I might encounter by concatinating the company name and a random number?
I'm not sure if this is the best way to go about creating a primary key.
Thanks!
I have the default value for CallID set to :
=[Forms]![Contacts]![Name] & " - " & Rnd()
Each time the user enters a new call, the CallID value becomes the Company Name plus a random number. (Ex: ACME Trucks - 0.7642685)
Several different users will be using this program to enter data. At the end of each week each user will send his/her data to the home office so that it can be imported into a master file.
Can anyone see any problems that I might encounter by concatinating the company name and a random number?
I'm not sure if this is the best way to go about creating a primary key.
Thanks!