Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

add 1 to value of field in previous record

$
0
0
Hello,

I am looking for a little help with a form for a database I'm working on. On this form, I have the following fields:

Batch Number
Ship Via
Date / Time

On a Subform, I have the following:

Invoice Number

The forms are linked in such a way that one can type different values into the Invoice Number field and each record takes the entries from the main form too.

What I would like to accomplish is the Batch Number field auto-incrementing when I press a button somewhere on the page. Basically, when that button is pressed, or when the form is first opened (either way or both), I'd like it to look at the most recent record and automatically take that numerical value and add 1 to it.

Is there a way to do this?

Thanks for any insight you can offer. :) Be well!

Viewing all articles
Browse latest Browse all 13329

Trending Articles