magister011
Technical User
I have a rather unique problem that I have seen solved on a forum yet. I am using MS Access 2003. I have three tables.
tblProject
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
tblIntermediate
-idsIntPK = Primary Key
-lngzIntProjFK1 = Foreign Key from tblProject
-lngzIntProjFK2 = Foreign Key from tblProject1
tblProject1
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
My relationships are a one to many from tblProject.idsProjPK to tblIntermediate.lngzIntProjFK1 and a one to many from tblProject1.idsProjPK to tblIntermediate.lngzIntProjFK2
The Master Field is tblProject.ProjPK
The Child Field is tblIntermediate.IntProjFK1
I have a form and a subform for the user to input the data. The subform contains the fields from tblProject1
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
and the fields from tblIntermediate
-lngzIntProjFK1 = Foreign Key from tblProject
-lngzIntProjFK2 = Foreign Key from tblProject1
The form contains the subform and the fields from tblProject
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
Right now when the user enters data, the data goes into the correct tables. What I want to do is to be able to add data to the tblIntermediate but in reverse. I want to be able to enter data on the form and sub form and be able to have the data inputted to the tbl.Project and tblProject1 with both the
Master Field = tblProject.ProjPK
Child Field = tblIntermediate.IntProjFK1
and
Master Field = tblProject1.ProjPK
Child Field = tblIntermediate.IntProjFK2
I hope that I am explaining this correctly. I have been working on this for about a month with no luck at all in doing this both ways, unless I actually enter the data into the tblIntermediate, which is what I do not want to do. I also would not like to have to enter any of the data twice.
If anyone has any suggestions, I would greatly apprciate it.
Thank you very much for your time,
magister011
tblProject
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
tblIntermediate
-idsIntPK = Primary Key
-lngzIntProjFK1 = Foreign Key from tblProject
-lngzIntProjFK2 = Foreign Key from tblProject1
tblProject1
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
My relationships are a one to many from tblProject.idsProjPK to tblIntermediate.lngzIntProjFK1 and a one to many from tblProject1.idsProjPK to tblIntermediate.lngzIntProjFK2
The Master Field is tblProject.ProjPK
The Child Field is tblIntermediate.IntProjFK1
I have a form and a subform for the user to input the data. The subform contains the fields from tblProject1
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
and the fields from tblIntermediate
-lngzIntProjFK1 = Foreign Key from tblProject
-lngzIntProjFK2 = Foreign Key from tblProject1
The form contains the subform and the fields from tblProject
-idsProjPK = Primary Key
-chrProjNum = Project Number
-chrProjNam = Project Name
-chrProjContNum = Project Contract Number
Right now when the user enters data, the data goes into the correct tables. What I want to do is to be able to add data to the tblIntermediate but in reverse. I want to be able to enter data on the form and sub form and be able to have the data inputted to the tbl.Project and tblProject1 with both the
Master Field = tblProject.ProjPK
Child Field = tblIntermediate.IntProjFK1
and
Master Field = tblProject1.ProjPK
Child Field = tblIntermediate.IntProjFK2
I hope that I am explaining this correctly. I have been working on this for about a month with no luck at all in doing this both ways, unless I actually enter the data into the tblIntermediate, which is what I do not want to do. I also would not like to have to enter any of the data twice.
If anyone has any suggestions, I would greatly apprciate it.
Thank you very much for your time,
magister011