number increment

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form , each record has an autonumber but also a number I gave it '
 
Check out the DMax() function in the help. You can
certainly use it in an expression in an update query and I
_think_ (but can't remember for sure) that you could use it
in the default value property of the appropriate control on
your form.

Something like =DMax("[SID]", "table or query name")+1
should automatically increment the SID field by 1 each time
a new record is added and the user doesn't have to do it
(and probably shouldn't).

HTH
--
Nick Coe (UK)
http://www.alphacos.co.uk/ AccHelp is now Free
http://www.mrcomputersltd.com/ Repairs Upgrades

In martyn typed:
 

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

Back
Top