C
channell
Hello,
I have a main form with a subform(continuous forms) in it. On this subform,
I have a field that has a button next to it. If I press this button, it will
open another form(continuous forms) that is linked to it to have the ability
to see, edit, add and delete extra information. I have the following code,
and it works only to let me open the form. I can add information, but once I
close it, it is gone forever. If I click the button to open the form, the
information is not displayed and I can't recover it.
What am I doing wrong? Thank you very much for the help!
Private Sub MagGlass_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "fMRDETAILS"
stLinkCriteria = "[DAILYINFO ID]=" & Me![DAILYINFO ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sud
I have a main form with a subform(continuous forms) in it. On this subform,
I have a field that has a button next to it. If I press this button, it will
open another form(continuous forms) that is linked to it to have the ability
to see, edit, add and delete extra information. I have the following code,
and it works only to let me open the form. I can add information, but once I
close it, it is gone forever. If I click the button to open the form, the
information is not displayed and I can't recover it.
What am I doing wrong? Thank you very much for the help!
Private Sub MagGlass_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "fMRDETAILS"
stLinkCriteria = "[DAILYINFO ID]=" & Me![DAILYINFO ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sud