Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Quick access question

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

Quick access question
Reply
 
Thread Tools
Old 28-02-2007, 12:00   #1
OinkyBoinky
Inactive
 
OinkyBoinky's Avatar
 
Join Date: Nov 2004
Location: Kent, England
Age: 39
Services: NTL 2048kbps CM Basic NTL TV
Posts: 293
OinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about them
Send a message via MSN to OinkyBoinky
Quick access question



Wot can i put into that Default Value bit so that it shows the current date of when the page was opened? its beenn a few years since my GCSE when i last had to deal with this.
OinkyBoinky is offline   Reply With Quote
Advertisement
Old 28-02-2007, 12:12   #2
spiritusmundi
Inactive
 
Join Date: Feb 2007
Posts: 3
spiritusmundi is an unknown quantity at this point
Re: Quick access question

Try this:

When a date is usually the current date, you can eliminate entering any value at all. Simply set the field's Default Value property to Now() or Date(). When you enter a new record, the property will enter the system's current date (and time). You don't even need to press [Ctrl] ;.

#3: Now() versus Date()
The Now() function returns the system's current date and time. It's a package deal--you always get both. If all you need is the current date and not the time, use the Date() function instead. On the other hand, if all you want is the current time, use the Time() function. Don't use Now() unless you really mean to store both the date and time.

Why does it matter? A value that includes both a date and time component usually responds differently to expressions. For instance, you might expect the following expression to find dates that fall after December 12, 2006:

WHERE field >#12/12/2006#However, the resulting recordset will include December 12, 2006, entries when the entry includes a time value. Conversely, Access won't return December 12, 2006, dates if the entry stores just a date value.
spiritusmundi is offline   Reply With Quote
Old 28-02-2007, 12:21   #3
OinkyBoinky
Inactive
 
OinkyBoinky's Avatar
 
Join Date: Nov 2004
Location: Kent, England
Age: 39
Services: NTL 2048kbps CM Basic NTL TV
Posts: 293
OinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about them
Send a message via MSN to OinkyBoinky
Re: Quick access question

thank you i kenw it was sumthin simple
OinkyBoinky is offline   Reply With Quote
Old 28-02-2007, 16:48   #4
OinkyBoinky
Inactive
 
OinkyBoinky's Avatar
 
Join Date: Nov 2004
Location: Kent, England
Age: 39
Services: NTL 2048kbps CM Basic NTL TV
Posts: 293
OinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about themOinkyBoinky has a spectacular aura about them
Send a message via MSN to OinkyBoinky
Re: Quick access question

I've got another one, i've got a field called Birthdate that has a dob, and i've just created a new field called age.

Is there a way i can use date() and the [birthdate] field and put those into the age field's Default Value? to save having to manually enter the age?
OinkyBoinky is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum