Access 2000 Form

  • Thread starter Thread starter Pam
  • Start date Start date
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.
 
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.
 
Back
Top