Talk About Network

Google





Software > Access Forms > Re: default val...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 46496 of 46786
Post > Topic >>

Re: default value for calendar on data entry form

by =?Utf-8?B?cGF1bG9sZEBhb2wuY29t?= <pauloldaolcom@[EMAIL PROTECTED] Dec 3, 2008 at 06:51 AM

DUH! How could I miss something so obvious?? Since the calendar always
shows 
the value of the TransDate field in my main table, I simply set the
default 
value of the TransDate field to be Date() so that whenever a new record is

created, the current date gets populated there. If that's not the correct 
date for the record, I can easily adjust it since the current date will be

near the actual trans date. Sometimes you gotta step away to see the
simple 
answer.

"paulold@[EMAIL PROTECTED]
" wrote:

> I believe that would only set the value of the calendar to being the
current 
> date, when I need it to show the value of the TransDate field on
existing 
> records and the current date on newly created, empty records (until I
choose 
> a value for TransDate). What does OnCurrent mean? Wouldn't that apply to
the 
> existing records and not just the new ones?
> 
> "tkelley via AccessMonster.com" wrote:
> 
> > Holy cow, I botched that one.  I got a little mixed up.
> > 
> > Have you tried putting your calendar8.value=date() in your OnCurrent
event
> > for the form?  That's where I meant to go with this.
> > 
> > tkelley wrote:
> > >If you look at the properties/events of a calendar control, they
aren't all
> > >listed.  However, if you go into the VBA code window and select your
calendar
> > >as the object, you'll see additional events that apply to calendars
in the
> > >events dropdown.
> > >
> > >In that dropdown you can select OnCurrent.  Then you can put your
code to set
> > >the calendar.value property.
> > >
> > >Try that ...
> > >
> > >>I have added a calendar control to my data entry form in Access
2003. It's 
> > >>called Calendar8. I have it tied to a field in my main table called 
> > >[quoted text clipped - 15 lines]
> > >>far)? When I enter transactions, I roughly enter them in date order,
oldest 
> > >>to newest. Thanks!
> > 
> > -- 
> > Message posted via AccessMonster.com
> > http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200812/1
> > 
> >
 




 5 Posts in Topic:
default value for calendar on data entry form
=?Utf-8?B?cGF1bG9sZEBhb2w  2008-12-02 13:46:14 
Re: default value for calendar on data entry form
"tkelley via AccessM  2008-12-02 22:30:45 
Re: default value for calendar on data entry form
"tkelley via AccessM  2008-12-02 22:33:15 
Re: default value for calendar on data entry form
=?Utf-8?B?cGF1bG9sZEBhb2w  2008-12-03 06:45:01 
Re: default value for calendar on data entry form
=?Utf-8?B?cGF1bG9sZEBhb2w  2008-12-03 06:51:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 16:52:56 PST 2009.