Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / August 2004

Tip: Looking for answers? Try searching our database.

Access 2000 Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pam - 20 Aug 2004 15:47 GMT
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.
Steve Schapel - 23 Aug 2004 09:47 GMT
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.

Signature

Steve Schapel, Microsoft Access MVP

> I am trying to have a PO# field on a form enter an auto
> number but only after the authorization field on the same
[quoted text clipped - 5 lines]
>
> Is this possible.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.