S
SteveP.
I am working on a product returns DB that manages any product that is
returned to our facility. Any time a customer returns product to us, they
have to get a Debit Memo Number. When this DB was originally implemented in
our facility, these numbers started in the 6000 range. Every once in a while,
product is returned to us without one of these Debit Memo Numbers. In the
past when this has occurred, starting with 0, we would gradually increment
these numbers adding 1 each time (obviously). In 2 years, we are up to 34, so
it will take a long time to reach 6000. As I have had to open up the table to
determine what this number should be, what I would like to have happen is,
when an associate receives one of these units without a Debit Memo Number,
they press a button on the form and it automatically locates the highest
number (as of right now, it would be 34) and adds 1 to it. On other forms, I
have used both a "=DMax..." and extensive code that runs a query to add one
to the highest number in the table. Both of these approaches locate the
highest number in the table. Trying either of these approaches with a query
that lists numbers <6000 gives me a "circular reference" error.
Field name: DebitMemoNumber
Table: tblReturn2
Any help is appreciated. Thank you
returned to our facility. Any time a customer returns product to us, they
have to get a Debit Memo Number. When this DB was originally implemented in
our facility, these numbers started in the 6000 range. Every once in a while,
product is returned to us without one of these Debit Memo Numbers. In the
past when this has occurred, starting with 0, we would gradually increment
these numbers adding 1 each time (obviously). In 2 years, we are up to 34, so
it will take a long time to reach 6000. As I have had to open up the table to
determine what this number should be, what I would like to have happen is,
when an associate receives one of these units without a Debit Memo Number,
they press a button on the form and it automatically locates the highest
number (as of right now, it would be 34) and adds 1 to it. On other forms, I
have used both a "=DMax..." and extensive code that runs a query to add one
to the highest number in the table. Both of these approaches locate the
highest number in the table. Trying either of these approaches with a query
that lists numbers <6000 gives me a "circular reference" error.
Field name: DebitMemoNumber
Table: tblReturn2
Any help is appreciated. Thank you