incrementing values based on records

R

rendicil

I have a form based on a table which has an Order ID number. Every time I make a new record I want the value to just increase by 1 (based on the last record in the table). How do I do this?
 
D

Dan Artuso

Hi,
This might works for you:

Put this in the default value for the control that is bound to
your OrderId field:
=DMax("OrderId","yourTable") + 1

--
HTH
Dan Artuso, Access MVP


rendicil said:
I have a form based on a table which has an Order ID number. Every time I make a new record I want the value to just increase by
1 (based on the last record in the table). How do I do this?
 

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

Top