I have a table tblJobInfo with a field in it called InsuranceID. This is not the KeyField, but it is related to another table tblInsuranceInfo who's keyfield is InsuranceID. The two other fields are related elsewhere and it is a kind of spiders web, but once I have the answer to this, the rest will unfold. So lets say the other fields where named CertificateHolder and AdditionallyInsured.
On my main form, which is based of tblJobInfo I have a section where I need to enter the Insurance Information. This information can be associated with more than one job, hence the need for a seperate table, tblInsuranceInfo.
My main problem is creating a subform to do this. I'm sure I will be, and should be directed to a guide to creating subforms, but if someone could directly answer my question that would be great.
I get to the field InsuranceID (from tblJobInfo which has datatype of Number). This field is empty. Here lies my problem I know. So I click into the subform I have created which includes the fields InsuranceID, CertificateHolder and AdditionallyInsured, all from tblInsuranceInfo. InsuranceID is an autonumber. When I tab out of there try to type the Certificate Holders name, I get the infamous 'You can't assign a value to this object' message.
I know I need to create the InsuranceID in tblJobInfo first but I thought it would be created when I created a new a record in tblInsuranceInfo.
If you can make head or tail of that, I would appreciate your assistance.
Thanks
On my main form, which is based of tblJobInfo I have a section where I need to enter the Insurance Information. This information can be associated with more than one job, hence the need for a seperate table, tblInsuranceInfo.
My main problem is creating a subform to do this. I'm sure I will be, and should be directed to a guide to creating subforms, but if someone could directly answer my question that would be great.
I get to the field InsuranceID (from tblJobInfo which has datatype of Number). This field is empty. Here lies my problem I know. So I click into the subform I have created which includes the fields InsuranceID, CertificateHolder and AdditionallyInsured, all from tblInsuranceInfo. InsuranceID is an autonumber. When I tab out of there try to type the Certificate Holders name, I get the infamous 'You can't assign a value to this object' message.
I know I need to create the InsuranceID in tblJobInfo first but I thought it would be created when I created a new a record in tblInsuranceInfo.
If you can make head or tail of that, I would appreciate your assistance.
Thanks