frmCalendar ms access 2010

mr moe

Registered User.
Local time
Today, 19:54
Joined
Jul 24, 2003
Messages
332
Hi,
Once I upgraded access to 2010 my frmcalendar doesn't work anymore, anybody has experienced this issue. It's still working fine for ms access 2007. Here is the function i'm using.

Public gtxtCalTarget As TextBox 'Text box to return the date from the calendar to.

Public Function CalendarFor(txt As TextBox, Optional strTitle As String)
On Error GoTo Err_Handler
'Purpose: Open the calendar form, identifying the text box to return the date to.
'Arguments: txt = the text box to return the date to.
' strTitle = the caption for the calendar form (passed in OpenArgs).

Set gtxtCalTarget = txt
DoCmd.OpenForm "frmCalendar", windowmode:=acDialog, OpenArgs:=strTitle

Exit_Handler:
Exit Function

Err_Handler:
MsgBox "Error " & Err.Number & " - " & Err.Description, vbExclamation, "CalendarFor()"
Resume Exit_Handler
End Function
 

Users who are viewing this thread

Back
Top Bottom