473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

calendar control default date?

I have several active-x calendar controls in my access database. I
can't seem to figure out how to set the date on the calendare. In the
"on open" event of my form, I create the following line of code.
"[calendar1].value=date()". This doesn't work. When the form opens,
I would like the calendar to reflect the current date. Please help.

thanks
Nov 13 '05 #1
3 11959
On Open try me.[calendar1].value = format(now(), "m/d/yy",vbSunday,
vbfirstJan1)

"Bob Weisenburger" <bo******@hotmail.com> wrote in message
news:77**************************@posting.google.c om...
I have several active-x calendar controls in my access database. I
can't seem to figure out how to set the date on the calendare. In the
"on open" event of my form, I create the following line of code.
"[calendar1].value=date()". This doesn't work. When the form opens,
I would like the calendar to reflect the current date. Please help.

thanks

Nov 13 '05 #2
My mistake: Do it "On Load" not "On Open"

"Tommy Martin" <ma********@charter.net> wrote in message
news:10*************@corp.supernews.com...
On Open try me.[calendar1].value = format(now(), "m/d/yy",vbSunday,
vbfirstJan1)

"Bob Weisenburger" <bo******@hotmail.com> wrote in message
news:77**************************@posting.google.c om...
I have several active-x calendar controls in my access database. I
can't seem to figure out how to set the date on the calendare. In the
"on open" event of my form, I create the following line of code.
"[calendar1].value=date()". This doesn't work. When the form opens,
I would like the calendar to reflect the current date. Please help.

thanks


Nov 13 '05 #3
OK, Use "On Load" event:

me.[calendar1].value = date()

"Bob Weisenburger" <bo******@hotmail.com> wrote in message
news:77**************************@posting.google.c om...
I have several active-x calendar controls in my access database. I
can't seem to figure out how to set the date on the calendare. In the
"on open" event of my form, I create the following line of code.
"[calendar1].value=date()". This doesn't work. When the form opens,
I would like the calendar to reflect the current date. Please help.

thanks

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Larry R Harrison Jr | last post by:
I use the Lebans calendar control and love it; the only thing is that it commonly starts out at the year 1899 rather than the current year. Is there a way to specifically tell it to start at the...
3
by: JingleBEV | last post by:
Hi all, I have a masked text control that would return a date in string format via the mask property like: "9/23/2004" and i have a calendar control that would pop up when I click a command...
8
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
0
by: Luis Esteban Valencia | last post by:
Hi folks, I have a problem using the Calendar Control. Let me explain: On my first page, "Default.aspx", I have a calendar control named "calPrimary". I then have a Web User Control on the...
2
by: Mariano Padilla | last post by:
The calendar control only has the event of SelectionChanged to detect if the user clicks on the calendar. I have 2 calendars on a form, one for arrival date one for departure date. Every time a...
2
by: Paul | last post by:
I am using the standard Calendar control in ASP.Net 2.0 and VB.Net and VS2005. Here is the code: <asp:calendar id="cldr_contract_date" runat="server" backcolor="#ffffff" width="250px"...
1
by: Smonczka | last post by:
I have an ASP page with a Calendar Control in it. Users select a date from the Calendar. When they do a form opens up where they can enter or view data for that date. The problem is there dosn't...
21
JamesDC
by: JamesDC | last post by:
Hey all, How do I set the default date of my MSCAL.Calendar.7 calendar to today's date? I have it on one of my forms so that an employee can click on a given date and bring up the records form...
2
by: saichaitanya | last post by:
Hi, I am using asp calendar control in my application and i'm expecting the selected date as todays date from it during the page load.But instead it is giving me the selected date as "12:00:00...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.