Hello friends!
I have an error in the line "Runtime Error 2474", "The expression you entered requires the control to be in the active window".
"Line 7 error", thanks for the time to help me.
Please someone could help me, according to some research the error occasioned, due to regional settings.
I'm new to the forum.
error is caused when I open the 'frmHolidays' form, giving two clicks to the date the mini-calendar form, '' frmminicalendario, '' opens normally. , you can not assign a value to this object, because the access settings, Portuguese_Brazil, since now I thank who can help me.
My office portuguese _brazil.
I have an error in the line "Runtime Error 2474", "The expression you entered requires the control to be in the active window".
"Line 7 error", thanks for the time to help me.
Code:
Function FormDoubleClick ()
'When fields are double-clicked, set datSelected
datSelected = strMonth & "" & Me.ActiveControl.Caption & "," & intYear
'Close and set value
DoCmd.Close acForm, "frmMiniCalendar"
Screen.ActiveControl.Value = datSelected
End Function
Please someone could help me, according to some research the error occasioned, due to regional settings.
I'm new to the forum.
error is caused when I open the 'frmHolidays' form, giving two clicks to the date the mini-calendar form, '' frmminicalendario, '' opens normally. , you can not assign a value to this object, because the access settings, Portuguese_Brazil, since now I thank who can help me.
My office portuguese _brazil.