R
Rick
I have the following forms set up based on five tables:
Main form (Contacts)
ContactID PK (autonumber)
ContactName Text
ContactCredential Text
.....etc.
AddressTypes (subform1) linked to Contacts (main form) via
AddrTypeID PK (autonumber)
AddressType Text (ie. home, cottage, Corporate)
CompanyId FK (long integer lookup on Co. table)
ContactId FK (long integer)
.....etc.
AddressDetails (subform2) linked to AddressTypes (subform1)
linked via AddrTypeID
AddrDetID PK (autonumber)
CivicAddressLookup FK (long integer lookup on addresses)
SpecialLabel1 Text
SpecialLabel2 Text
DateChanged Date
AddrTypeID FK (long interger)
....etc
The form is thus:
Contacts
AddressTypes (a subform of Contacts)
AddressDetails (a subform of AddressTypes)
I am attempting to prevent users from entering an address
type on subform AddressTypes and then failing to add any
details in the AddressDetails form.
Presently they can add an address type and advance to the
next record without adding details in the AddressDetails
table/form.
I have attempted to use OnFocus, BeforeUpdate, Current
events, etc. to force the user to provide important info
in the details form before saving the AddressType record.
It appears just moving into the AddressDetails form fires
a save of the AddressType record. If after moving the
focus to the Address Details form the user can press
escape a few times and exit.
I have tried putting IsRequired properties on fields in
both tables and this does not prevent the user from
neglecting to enter data in the AddressDetails table.
I do not have a lot of experience with Access but is there
any suggestion on how to force complete data input?
TIA
Main form (Contacts)
ContactID PK (autonumber)
ContactName Text
ContactCredential Text
.....etc.
AddressTypes (subform1) linked to Contacts (main form) via
AddrTypeID PK (autonumber)
AddressType Text (ie. home, cottage, Corporate)
CompanyId FK (long integer lookup on Co. table)
ContactId FK (long integer)
.....etc.
AddressDetails (subform2) linked to AddressTypes (subform1)
linked via AddrTypeID
AddrDetID PK (autonumber)
CivicAddressLookup FK (long integer lookup on addresses)
SpecialLabel1 Text
SpecialLabel2 Text
DateChanged Date
AddrTypeID FK (long interger)
....etc
The form is thus:
Contacts
AddressTypes (a subform of Contacts)
AddressDetails (a subform of AddressTypes)
I am attempting to prevent users from entering an address
type on subform AddressTypes and then failing to add any
details in the AddressDetails form.
Presently they can add an address type and advance to the
next record without adding details in the AddressDetails
table/form.
I have attempted to use OnFocus, BeforeUpdate, Current
events, etc. to force the user to provide important info
in the details form before saving the AddressType record.
It appears just moving into the AddressDetails form fires
a save of the AddressType record. If after moving the
focus to the Address Details form the user can press
escape a few times and exit.
I have tried putting IsRequired properties on fields in
both tables and this does not prevent the user from
neglecting to enter data in the AddressDetails table.
I do not have a lot of experience with Access but is there
any suggestion on how to force complete data input?
TIA