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 Programming / April 2005

Tip: Looking for answers? Try searching our database.

Auto Date Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jdmcleod - 14 Apr 2005 21:53 GMT
I have a field on a form for the user to enter the date they completed that
item.  I want to have them click a button next to the field and launch a
calendar control, be able to select a date and then have the field update
with that date.  I know how to insert the calendar, but I can't get it to
appear and disappear and update the date field.  First time working with this
type of control so any help is appreciated.
'69 Camaro - 16 Apr 2005 02:27 GMT
Hi.

> I want to have them click a button next to the field and launch a
> calendar control, be able to select a date and then have the field update
> with that date.  

When the user selects the date with the Calendar control, the following code
would update the date in the text box:

   Me!BeginningDate.Value = Me!SelectDate.Value

... where BeginningDate is the name of the text box to display the date, and
SelectDate is the name of the Calendar control.

> I know how to insert the calendar, but I can't get it to
> appear and disappear and update the date field.

To make the Calendar control appear:

   Me!SelectDate.Visible = True

To make the Calendar control disappear:

   Me!SelectDate.Visible = False

For a working example of the Calendar control's use in a form, including VBA
code, you may download the Developer Solutions database in the bapp2000.exe
sample file from the following Web page:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bapp2000/html/m
dbdownload.asp


HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
Beware to those who use munged addresses:  known newsgroup E-mail harvesters
are Ripley@CASInternet.Net and scott@ripleysoftware.com

- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions.  Remember that the first and
best answers are often given to those who have a history of rewarding the
contributors who have taken the time to answer questions correctly.

> I have a field on a form for the user to enter the date they completed that
> item.  I want to have them click a button next to the field and launch a
> calendar control, be able to select a date and then have the field update
> with that date.  I know how to insert the calendar, but I can't get it to
> appear and disappear and update the date field.  First time working with this
> type of control so any help is appreciated.
 
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.