(Msg. 1) Posted: Tue May 26, 2009 2:40 pm
Post subject: Access Import Issue
I imported workorders into my main table and it caused a problem with the workorder numbers which is an autonumber. It went from 7000 to an 9 digit #. So I was told that I should not be using autonumbers for anything that is meaningful to the users, change my workorder field number to a long integer then populate the WO field in new records using code which determines the highest value, and adds one to that value. Any idea what that code is? My table is called "main Table". My field for the workorders would be "WorkOrderNumber".
The formula I was given was: = Nz(DMax("[IntPurchaseOrderNumber]", "tblPurchaseOrders") + 1,1) but obviously this doesn't go with what I have as my fields or tables and even when I change it to my field and table name, I get a name error. What am I doing wrong?
This isn't a good thing, as my boss started this database back in 2004 and it's been running solid since then without a hitch and they don't teach you in school, that the autonumber can't be a "public field".
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum