Hi there,
I have a database with several tables which include the following tables
Main Table is: tblClient
Fields:
ClientID (PK) - Autonumber
ClientRef - text
GenClientRef - text
Name, Address etc.
Other Related Tables:
tblPI
fields
IID (PK) - Autonumber
ClientRef - text
GenClientRef - text
Insurer, Policy Number etc
tblPL
fields
LID (PK) - Autonumber
ClientRef - text
GenClientRef - text
Insurer, Policy Number etc
The relationship between tblClient and the other tables are linked (one to many) by the following fields (which are in all tables)
ClientRef - text
GenClientRef - text
The join type is currently set to 1.
A record in tblClient will only have one corresponding record in tblPI, tblPL etc. I have set it up this way as the fields in each related table can vary and there are several fields in each table.
User Input is via Forms and SubForms
Main Form: frmClient
And each related table has it's own subform so
frmPI
frmPL
These are linked
Master Fields: ClientRef, GenClientRef
Child Fields: ClientRef, GenClientRef
Note:
ClientRef may be blank
GenClientRef may be blank
But both ClientRef and GenClientRef cannot be blank
(Subform ClientRef and GenClientRef fields are "locked" so cannot be altered)
-----------
Ok, I hope that explains the structure. Using Access 2013 btw
My question is that when testing, I have inputted information into one of the subforms (frmPI) which has passed the data through to tblPI.
The data in tblPI is ok where the fields in frmClient for ClientRef and GenClientRef have been completed on the mainform frmClient.
On entering data into (subform) frmPI for a new record where only ClientRef has been completed on the mainform frmClient (and GenClientRef is blank on the mainform frmClient), the data has been passed through to tblPI BUT when exiting the database and opening it again, the (subform) frmPI does not show the data but it is there in tblPI.
Can anyone explain what I'm doing wrong here? :banghead:
Many thanks in advance.
I have a database with several tables which include the following tables
Main Table is: tblClient
Fields:
ClientID (PK) - Autonumber
ClientRef - text
GenClientRef - text
Name, Address etc.
Other Related Tables:
tblPI
fields

ClientRef - text
GenClientRef - text
Insurer, Policy Number etc
tblPL
fields

ClientRef - text
GenClientRef - text
Insurer, Policy Number etc
The relationship between tblClient and the other tables are linked (one to many) by the following fields (which are in all tables)
ClientRef - text
GenClientRef - text
The join type is currently set to 1.
A record in tblClient will only have one corresponding record in tblPI, tblPL etc. I have set it up this way as the fields in each related table can vary and there are several fields in each table.
User Input is via Forms and SubForms
Main Form: frmClient
And each related table has it's own subform so
frmPI
frmPL
These are linked
Master Fields: ClientRef, GenClientRef
Child Fields: ClientRef, GenClientRef
Note:
ClientRef may be blank
GenClientRef may be blank
But both ClientRef and GenClientRef cannot be blank
(Subform ClientRef and GenClientRef fields are "locked" so cannot be altered)
-----------
Ok, I hope that explains the structure. Using Access 2013 btw
My question is that when testing, I have inputted information into one of the subforms (frmPI) which has passed the data through to tblPI.
The data in tblPI is ok where the fields in frmClient for ClientRef and GenClientRef have been completed on the mainform frmClient.
On entering data into (subform) frmPI for a new record where only ClientRef has been completed on the mainform frmClient (and GenClientRef is blank on the mainform frmClient), the data has been passed through to tblPI BUT when exiting the database and opening it again, the (subform) frmPI does not show the data but it is there in tblPI.
Can anyone explain what I'm doing wrong here? :banghead:
Many thanks in advance.