CharlieT302
Instructor
Hello Everyone,
I have a main form with two subforms.
Subform A Contains:
Call_Day field: A field containing a numeric entry between 1 - 30 (days of month)
Command Button: To direct the focus to Subform B
Subform B has 30 fields; each named 1 - 30 in sequence (corresponding to days of a sample month)
When the user clicks the command button on Form A, I would like the system to read the value in the Call_Day field and move to the field in Subform B with the corresponding Name.
Among other examples, I have tried the following:
Dim cal_field As Integer
cal_field = Me.Call_Day.Value
Forms!Frm_Setup_Options!Frm_Value_Test_6mth.SetFocus
Forms!Frm_Setup_Options!Frm_Value_Test_6mth.Form![cal_field].SetFocus
Ideas? Thank you in advance
I have a main form with two subforms.
Subform A Contains:
Call_Day field: A field containing a numeric entry between 1 - 30 (days of month)
Command Button: To direct the focus to Subform B
Subform B has 30 fields; each named 1 - 30 in sequence (corresponding to days of a sample month)
When the user clicks the command button on Form A, I would like the system to read the value in the Call_Day field and move to the field in Subform B with the corresponding Name.
Among other examples, I have tried the following:
Dim cal_field As Integer
cal_field = Me.Call_Day.Value
Forms!Frm_Setup_Options!Frm_Value_Test_6mth.SetFocus
Forms!Frm_Setup_Options!Frm_Value_Test_6mth.Form![cal_field].SetFocus
Ideas? Thank you in advance