WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Access Import Issue

 
   Home -> Windows -> Help & Support RSS
Next:  SP3 Question  
Author Message
atkbaffled




Joined: May 26, 2009
Posts: 1



(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? Confused

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". Sad

Learning as I go.
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows -> Help & Support 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
Categories:
  Windows XP
 Windows Vista
 Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support