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

Use a number field as ID

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Good morning tippers,

Ok, here is the scenario :-

I use a table (tblIssue) which has these fields -

issueID
issueDescription
problemNo

issueID is an autonumber which is just an id to link to an issueOccurance table. I would like the field problemNo to update itself every time a record is added.

issueID - 1
issueDesc - problem with psu
problemNo - 2094

then i add the next record, and problemNo is 2095

Get what i mean?

Do i need an update/insert query? how do i implement this?

Thanks for any help,

Alex
 
Take a look at the DMax function you can play with in the BeforeInsert event procedure of the form.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top