Access 2000 Form

P

Pam

I am trying to have a PO# field on a form enter an auto
number but only after the authorization field on the same
form is filled in on a form. The authorization field is
part of the same table (PO # Table). The PO# is related
to 2 other tables, the Item Table and the Invoice
Table. The Item Table is also part of the same form and
is related by PO #.

Is this possible.
 
S

Steve Schapel

Pam,

I think what you are asking is impossible if you mean that it is an
AutoNumber data type. As soon as the Authorisation field, or any other
field, has data entered into it, a value will be allocated to the
Autonumber field. However, you could make it a Number data type, and
use a VBA procedure to allocate the value, for example on the
AfterUpdate event of Authorisation. You would also need to take steps
to ensure that none of the fields from the Item Table table can be
accessed until after the PO# has a value allocated.

As a side issue, unrelated to your question, it is not a good idea to
use a # as part of the name of a field or control, and I would recommend
changing 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