S
sc
I create a module as below:
Option Compare Database
Option Explicit
Public frmName As String
Public CtrlName As String
and then, I code in the form below where the date value from the calendar
will reside:
Private Sub Image124_Click()
frmName = Me.Name
CtrlName = "combo58"
DoCmd.OpenForm ("calendar")
End Sub
The form mentioned above is inside other forms and tabs. When I run the
code, it cannot locate the form aforesaid. Do I need to make changes on the
frmName = me.name? It seems the application does not know the path to locate
the form.
The code in the save button in the calendar form is as below:
Private Sub Command1_Click()
Dim fomandcontrol As Variant
Forms(frmName).Controls(CtrlName) = Me.Calendar0.Value
'Forms![switch form]![new articles]![ForFrm]!Combo58.Value =
Me.Calendar0.Value
DoCmd.Close acForm, "calendar"
End Sub
I will appreciate anyone who will solve my problem.
Option Compare Database
Option Explicit
Public frmName As String
Public CtrlName As String
and then, I code in the form below where the date value from the calendar
will reside:
Private Sub Image124_Click()
frmName = Me.Name
CtrlName = "combo58"
DoCmd.OpenForm ("calendar")
End Sub
The form mentioned above is inside other forms and tabs. When I run the
code, it cannot locate the form aforesaid. Do I need to make changes on the
frmName = me.name? It seems the application does not know the path to locate
the form.
The code in the save button in the calendar form is as below:
Private Sub Command1_Click()
Dim fomandcontrol As Variant
Forms(frmName).Controls(CtrlName) = Me.Calendar0.Value
'Forms![switch form]![new articles]![ForFrm]!Combo58.Value =
Me.Calendar0.Value
DoCmd.Close acForm, "calendar"
End Sub
I will appreciate anyone who will solve my problem.