I'm trying to run this piece of code, but I get an error
Code:
Public Function fnNoWorkDays()
Dim strOpenArgs As String
strOpenArgs = "DoCmd.OpenForm 'NoWorkDays_Form', acNormal, , , , acDialog"
DoCmd.OpenForm "MonthSchedule", , , , , acDialog, strOpenArgs
End Function
and in the MonthSchedule's button click
Sub MyBtn_Click()
Eval (Me.OpenArgs)
end sub