J
jules
Hello all,
this is probably a simple question for most of you out there
but this problem has me totally stumped...
Intro: My database consists of five tables and ten different
forms (two forms access the same table but only different
fields). The number of fields exceeded Access' permissable
number of fields, so I resorted to above mentioned divison
of what usually could have fitted into one "root" table without
further nuisances.
Problem: After splitting the db as described, I created two
main with buttons which open the subforms, however the syncronization
between main- and subfroms does not work at all.
My VBA Macro looks like this:
--
Private Sub init_open_Click()
Dim stDocName1 As String
Dim stDocName2 As String
Dim stDocName3 As String
Dim stDocName4 As String
Dim stLinkCriteria As String
stDocName1 = "Subform_1"
stDocName2 = "Subform_2"
stDocName3 = "Subform_3"
stDocName4 = "Subform_4"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName1, , , stLinkCriteria
DoCmd.OpenForm stDocName2, , , stLinkCriteria
DoCmd.OpenForm stDocName3, , , stLinkCriteria
DoCmd.OpenForm stDocName4, , , stLinkCriteria
End Sub
--
The subforms open as desired but it is not possible to save
the data - for a different matter the AutoIDs don't correspond.
Any suggestions greatly appreciated,
Julia
this is probably a simple question for most of you out there
but this problem has me totally stumped...
Intro: My database consists of five tables and ten different
forms (two forms access the same table but only different
fields). The number of fields exceeded Access' permissable
number of fields, so I resorted to above mentioned divison
of what usually could have fitted into one "root" table without
further nuisances.
Problem: After splitting the db as described, I created two
main with buttons which open the subforms, however the syncronization
between main- and subfroms does not work at all.
My VBA Macro looks like this:
--
Private Sub init_open_Click()
Dim stDocName1 As String
Dim stDocName2 As String
Dim stDocName3 As String
Dim stDocName4 As String
Dim stLinkCriteria As String
stDocName1 = "Subform_1"
stDocName2 = "Subform_2"
stDocName3 = "Subform_3"
stDocName4 = "Subform_4"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName1, , , stLinkCriteria
DoCmd.OpenForm stDocName2, , , stLinkCriteria
DoCmd.OpenForm stDocName3, , , stLinkCriteria
DoCmd.OpenForm stDocName4, , , stLinkCriteria
End Sub
--
The subforms open as desired but it is not possible to save
the data - for a different matter the AutoIDs don't correspond.
Any suggestions greatly appreciated,
Julia