Strange one this.
I have a form a user fills in. The form it set to only allow an addition. The user fills in a unique number and after filling in all the other fields, I direct them to a button which asks if they want to save the record.
If they decide to save it, I have a dlookup statement which says if the unique number already exists , i.e. DLookup>0 then return a message which says the number already exists and prompt the user to change the number.
99% of the time this works fine. However, on the odd occasion, it will say the number exists when it doesnt. I'm a bit lost as to why this is occuring as its only on the odd occasion.....
Anyone got any ideas?
I have a form a user fills in. The form it set to only allow an addition. The user fills in a unique number and after filling in all the other fields, I direct them to a button which asks if they want to save the record.
If they decide to save it, I have a dlookup statement which says if the unique number already exists , i.e. DLookup>0 then return a message which says the number already exists and prompt the user to change the number.
99% of the time this works fine. However, on the odd occasion, it will say the number exists when it doesnt. I'm a bit lost as to why this is occuring as its only on the odd occasion.....
Anyone got any ideas?