On one of my forms, I have a field named CallID that is the primary key for my table.
For the default value, I have the following code:
=[Forms]![1_Company_Form]![COMPANY_NUMBER] & Rnd()
My code for generating a random number has been working great until now. For some reason it has been generating the same random number continuiously. Because of this, a new record can't be saved because this primary key already exists in the database.
Is it possible to be generating the same number 5 or 6 times in a row? I closed down access and restarted the program, but it still did the same thing.
For the default value, I have the following code:
=[Forms]![1_Company_Form]![COMPANY_NUMBER] & Rnd()
My code for generating a random number has been working great until now. For some reason it has been generating the same random number continuiously. Because of this, a new record can't be saved because this primary key already exists in the database.
Is it possible to be generating the same number 5 or 6 times in a row? I closed down access and restarted the program, but it still did the same thing.