F
Freeflyer
Hi,
I have a form and subform that I am trying to use for data entry. However,
it's not working out as planned.
I have two tables:
tblAccount
[AccountID] (PK)
[DefaultAddressID]
....more fields
tblAddress
[AccountID] (Combined PK)
[AddressID] (Combined PK)
.... more fields
tblAccount holds Account records including the default address to be used in
all transactions, although an account can have more than one address.
tblAddress holds all the addresses for all accounts with a combined primary
key of AccountID and AddressID.
tblAccount.AccountID is an autonumber field.
tblDefaultAddressID is a text field.
My main form has controls to allow the user to enter all the relevent
information for a new account. My subform has controls for a new address.
What I would like to happen is for the user to enter the new account, enter
an AddressID into tblAccount.defaultAddressID and then enter the address
details in the subform. However, whenever I try to type in the subform I
receive an error message saying "The LinkMasterFields property setting has
produced this error: ‘Object or class does not support the set of events’"
The Account record is created ok, the address record is not.
Link Master Fields is AccountID, DefaultAddressID
Link Child Fields is AccountID, AddressID
I think I need to capture the DefaultAddressID when it is entered and use
this to create the address record and populate the primary key fields, but
I'm not sure how.
Any ideas would be appreciated.
I have a form and subform that I am trying to use for data entry. However,
it's not working out as planned.
I have two tables:
tblAccount
[AccountID] (PK)
[DefaultAddressID]
....more fields
tblAddress
[AccountID] (Combined PK)
[AddressID] (Combined PK)
.... more fields
tblAccount holds Account records including the default address to be used in
all transactions, although an account can have more than one address.
tblAddress holds all the addresses for all accounts with a combined primary
key of AccountID and AddressID.
tblAccount.AccountID is an autonumber field.
tblDefaultAddressID is a text field.
My main form has controls to allow the user to enter all the relevent
information for a new account. My subform has controls for a new address.
What I would like to happen is for the user to enter the new account, enter
an AddressID into tblAccount.defaultAddressID and then enter the address
details in the subform. However, whenever I try to type in the subform I
receive an error message saying "The LinkMasterFields property setting has
produced this error: ‘Object or class does not support the set of events’"
The Account record is created ok, the address record is not.
Link Master Fields is AccountID, DefaultAddressID
Link Child Fields is AccountID, AddressID
I think I need to capture the DefaultAddressID when it is entered and use
this to create the address record and populate the primary key fields, but
I'm not sure how.
Any ideas would be appreciated.