Default Value in Access Table

  • Thread starter Thread starter DigDoc Steve
  • Start date Start date
D

DigDoc Steve

I'm attempting to create a database with a table that has an autonumber
field, and a column that has a numerical value. I want the default value to
be the same as the autonumber field, so that there's a number assigned, or
the user can change the number, if they have to. Anyone know how to
accomplish this?


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
You cannot use the Default Value in the table for this, because the new
AutoNumber is not yet available at the time Access assigns the Default
Value.

Instead, you can use the BeforeInsert event of your form to assign the
value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Runtime error 3
GPS 4
Windows files: $NTUninstallKB......$ 8
Access 2010 query for 3 tables 0
Printing Error 3
text to speech programs 5
FP doesn't open on last used Web 5
OpenArgs - Default value 1

Back
Top