Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Calender display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CharlesCount - 12 Nov 2007 01:38 GMT
Can some one assist me? I would like to temporarely display the calender and
select the date in a form and capture the desired date.
I am a novice at this

Charles
Linq Adams - 12 Nov 2007 02:06 GMT
If you'd like to only have the calendar appear when you need to pick a date,
you can use this routine.

YourTextBoxName is the name of the box that will hold the date

YourCalendarName is the name of your calendar.

First, place the calendar where you want it to appear on the form.

Next, select the calendar and goto Properties--Format and set Visible = No

Then place this code in the form's code module:

Private Sub Form_Load()
  YourCalendarName = Date
End Sub
 
Private Sub YourCalendarName_Click()
  YourTextBoxName = YourCalendarName
  YourTextBoxName.SetFocus
  YourCalendarName.Visible = False
End Sub
 
Private Sub YourTextBoxName_DblClick(Cancel As Integer)
 YourCalendarName.Visible = True
End Sub

Now, when your user DoubleClicks on the textbox where the date will go, the
calendar will appear. The date is picked, and the calendar disappears!

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Daniel - 12 Nov 2007 13:55 GMT
There are several good website to get such tools so that you don't need to
reinvent the wheel.  whatever you do stay away from activex control for this,
they are a headache and cause versioning issue.  Below are two great calendar
pop-ups.  I have used both from several years now.  They are robust (do not
fail/crash)...

http://allenbrowne.com/ser-51.html
http://www.lebans.com/monthcalendar.htm
Signature

Hope this helps,

Daniel P

> Can some one assist me? I would like to temporarely display the calender and
> select the date in a form and capture the desired date.
> I am a novice at this
>
> Charles
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.