Where to locate a form in Function (1 Viewer)

rickyfong

Registered User.
Local time
Yesterday, 19:44
Joined
Nov 25, 2010
Messages
199
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

I got the above function, and I don't know where to find the form named "fromCalendar" inside the ACCESS!! Any idea?? Thanks a lot!!
 

llkhoutx

Registered User.
Local time
Yesterday, 21:44
Joined
Feb 26, 2001
Messages
4,018
It definitely in the Navigation Pane on the left side of the Access window.
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 12:44
Joined
Jan 20, 2009
Messages
12,852
If you simply copied the code from somewhere then you need to understand that the form is an essential part of what you need to copy too. It isn't a built in part of Access.
 

Users who are viewing this thread

Top Bottom