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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get second AutoNumber based on a condition?

Status
Not open for further replies.

OrlandoG7

Technical User
Jan 1, 2002
33
US
I have one table that has general info such as the status of a Job--wheter it's an "Estimate" or wether it's "Booked". In this table there is one AutoNumber field set as Primary Key, named [EstimateNumber].

When the user changes the job status from "Estimate" to "Booked", I want a second autonumber, independant of the [EstimateNumber], to become available. Any suggestions?
 
This is actually more of a design suggestion. I have built MRP/ERP systems which use estimate/bid/award logic. What has worked well for me is, when an estimate is accepted (won) a new jobHeader record is created, with the estimateID as a linking foriegn key to the estimate table. This may solve your problem and is a proven design.

Cheers
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top