T
Tru
Scenario: My Main Form (Parent Form) has a bound text control on it called
txtDateClosed that the user is not permitted to access. The only way this
field can be completed if they Click a command button on the Parent Form to
open the other form (Child Form) and complete the required information on the
Child Form. Once the required information is completed which includes the
date information for txtDateClose on the Parent Form. I am trying to transfer
the txtCloseDate on the Child Form to the txtDateClosed on the Parent Form
but nothing is happening, I'm not getting no error messages either, below is
the code I am using:
Dim Ctl As Control
'If Parent Form is loaded, select it, and set value
'of selected text box
If IsLoaded("ParentFormName") Then
Set Ctl = Forms!ParentFormName!txtDateClosed
DoCmd.SelectObject acForm, "ParentFormName"
Ctl = Me.txtCloseDate (The control on the Child Form)
End If
txtDateClosed that the user is not permitted to access. The only way this
field can be completed if they Click a command button on the Parent Form to
open the other form (Child Form) and complete the required information on the
Child Form. Once the required information is completed which includes the
date information for txtDateClose on the Parent Form. I am trying to transfer
the txtCloseDate on the Child Form to the txtDateClosed on the Parent Form
but nothing is happening, I'm not getting no error messages either, below is
the code I am using:
Dim Ctl As Control
'If Parent Form is loaded, select it, and set value
'of selected text box
If IsLoaded("ParentFormName") Then
Set Ctl = Forms!ParentFormName!txtDateClosed
DoCmd.SelectObject acForm, "ParentFormName"
Ctl = Me.txtCloseDate (The control on the Child Form)
End If