D
David Wetmore
I am trying to pass a key from one form to another form, not a sub form.
In the originating form I have the following code:
Private Sub cmdEdit_DeleteRecord_Click()
DoCmd.OpenForm ("frmEditDeleteData")
Forms!frmEditDeleteData.txtIncomingHeader = CStr(intHeaderKey)
End Sub
In the destination form the Form_Activate event closes the originating form with
If CurrentProject.AllForms("frmViewRecords").IsLoaded Then
DoCmd.Close acForm, "frmViewRecords"
End If
In this destination form txtIncomingHeader is an unbound text box.
When I execute the form the value of the passed header key is
displayed in txtIncomingHeader. BUT, it seems to be read-only. I can't
access or change the data in the textbox.
How do I get to the contents of txtIncomingHeader?
Thanks
In the originating form I have the following code:
Private Sub cmdEdit_DeleteRecord_Click()
DoCmd.OpenForm ("frmEditDeleteData")
Forms!frmEditDeleteData.txtIncomingHeader = CStr(intHeaderKey)
End Sub
In the destination form the Form_Activate event closes the originating form with
If CurrentProject.AllForms("frmViewRecords").IsLoaded Then
DoCmd.Close acForm, "frmViewRecords"
End If
In this destination form txtIncomingHeader is an unbound text box.
When I execute the form the value of the passed header key is
displayed in txtIncomingHeader. BUT, it seems to be read-only. I can't
access or change the data in the textbox.
How do I get to the contents of txtIncomingHeader?
Thanks