Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Primary key blank

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
0
0
US
Hi,
Does anyone know a solution for this problem: Whenever the user add a new record a Prospect key number is generated by the database. Now all the info entered is there except the prospect key (blank).
Your help is appreciated.

Thanks.

Ismail
 
How exactly is the data generated for the Prospect key and inserted in the field when the record is added?

Have fun! :eek:)

Alex Middleton
 
This is an entry data form. To add a new member, the user type the info except the prospect key. The prospect key defaulted to the next number.
I hope this is clear.
Thanks for responding
 
OK, is the Prospect key an autonumber or is there code to calculate it? What method is used to put the data into the field, code or some other method?

Have fun! :eek:)

Alex Middleton
 
If it is Autonumber and a new record is definitely being added to that table, then there is no way the number can not be added as well.

Have fun! :eek:)

Alex Middleton
 
You right, the reason the number was not being added was because the field was on number not autonubmer.
Thanks so much for you help and patience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top