S
sylvieB25
I need help with my forms in Access 2003. Basically my question is how to
move some values from one form to another. I am totally stuck and don't know
how to do it. Any help would be greatly appreciated.
Here is my scenario.
I have two forms, the main form called frmMTR and second form called
frmWarranty. I created a command button on the main form that when clicked it
will open the second form frmWarranty and copy some values form the main
form.
Here is the code I wrote; it does not work; it does not move the values.
Private Sub Export_Click()
'Opens frmWarrantyReport to populate some fields from frmMTR
'Dim stDocName As String
'Dim stLinkCriteria As String
'stDocName = "frmWarrantyReport"
'stLinkCriteria = "[DateReported]=" & "" & Me![DateReported] & ""
'stLinkCriteria = "[IssuedBy]=" & "" & Me![IssuedBy] & ""
'stLinkCriteria = "[MTRTitle]=" & "" & Me![MTRTitle] & ""
'DoCmd.OpenForm stDocName, , , stLinkCriteria
move some values from one form to another. I am totally stuck and don't know
how to do it. Any help would be greatly appreciated.
Here is my scenario.
I have two forms, the main form called frmMTR and second form called
frmWarranty. I created a command button on the main form that when clicked it
will open the second form frmWarranty and copy some values form the main
form.
Here is the code I wrote; it does not work; it does not move the values.
Private Sub Export_Click()
'Opens frmWarrantyReport to populate some fields from frmMTR
'Dim stDocName As String
'Dim stLinkCriteria As String
'stDocName = "frmWarrantyReport"
'stLinkCriteria = "[DateReported]=" & "" & Me![DateReported] & ""
'stLinkCriteria = "[IssuedBy]=" & "" & Me![IssuedBy] & ""
'stLinkCriteria = "[MTRTitle]=" & "" & Me![MTRTitle] & ""
'DoCmd.OpenForm stDocName, , , stLinkCriteria