G
Grizz
Here is a scenerio, I have a form already opened. I want to take but a
couple of the textboxes information off the current form and pass it to
another form when a button is pushed to open. Then be able to save the
information later to a table when needed.
This is the code I have in place on my current form to open the second form,
but my table is not being populated with the textboxes from the current form,
so this is not working.
Private Sub btnReceipt_Click()
On Error GoTo Err_btnReceipt_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Receipt"
stLinkCriteria = "[SampleID]=" & "'" & Me![SampleID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnSampleReceipt_Click:
Exit Sub
Err_btnSampleReceipt_Click:
MsgBox Err.Description
Resume Exit_btnSampleReceipt_Click
End Sub
This is why I would think it would be easier to populate the second forms
information from the first from then be able to save the information to the
table later. I know then I would rewrite the current form to just open up
the second form with the code to populate, which I do not know how. Hope you
all understand this, can you help
Thanks
couple of the textboxes information off the current form and pass it to
another form when a button is pushed to open. Then be able to save the
information later to a table when needed.
This is the code I have in place on my current form to open the second form,
but my table is not being populated with the textboxes from the current form,
so this is not working.
Private Sub btnReceipt_Click()
On Error GoTo Err_btnReceipt_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Receipt"
stLinkCriteria = "[SampleID]=" & "'" & Me![SampleID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnSampleReceipt_Click:
Exit Sub
Err_btnSampleReceipt_Click:
MsgBox Err.Description
Resume Exit_btnSampleReceipt_Click
End Sub
This is why I would think it would be easier to populate the second forms
information from the first from then be able to save the information to the
table later. I know then I would rewrite the current form to just open up
the second form with the code to populate, which I do not know how. Hope you
all understand this, can you help
Thanks