WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Date Fields

 
   Home -> Office other -> Getting Started RSS
Next:  select team members  
Author Message
CaptPhil

External


Since: Aug 16, 2008
Posts: 2



(Msg. 1) Posted: Sat Aug 16, 2008 5:18 am
Post subject: Date Fields
Archived from groups: microsoft>public>access>gettingstarted (more info?)

In my database, I have a date and time field. Using conditional formatting, I
would like to highlight this date on a form when the entered date = today.
The condition "must equal Date()" works if my date field only contains a
date. If my field contains a date and time, the solution does not work. I
think it has to do with the Date function equaling the date at 00:00 so it is
not a perfect match? I need the function to ignore the time in my field.
Back to top
Login to vote
fredg

External


Since: Jan 30, 2004
Posts: 4646



(Msg. 2) Posted: Sat Aug 16, 2008 7:30 am
Post subject: Re: Date Fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 16 Aug 2008 05:18:02 -0700, CaptPhil wrote:

> In my database, I have a date and time field. Using conditional formatting, I
> would like to highlight this date on a form when the entered date = today.
> The condition "must equal Date()" works if my date field only contains a
> date. If my field contains a date and time, the solution does not work. I
> think it has to do with the Date function equaling the date at 00:00 so it is
> not a perfect match? I need the function to ignore the time in my field.

Using Conditional Formatting, set Condition1 to
Expression Is.
Set the Expresion to:
DateValue([DateField] = Date()

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Back to top
Login to vote
CaptPhil

External


Since: Aug 16, 2008
Posts: 2



(Msg. 3) Posted: Sat Aug 16, 2008 9:21 am
Post subject: Re: Date Fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"fredg" wrote:

> On Sat, 16 Aug 2008 05:18:02 -0700, CaptPhil wrote:
>
> > In my database, I have a date and time field. Using conditional formatting, I
> > would like to highlight this date on a form when the entered date = today.
> > The condition "must equal Date()" works if my date field only contains a
> > date. If my field contains a date and time, the solution does not work. I
> > think it has to do with the Date function equaling the date at 00:00 so it is
> > not a perfect match? I need the function to ignore the time in my field.
>
> Using Conditional Formatting, set Condition1 to
> Expression Is.
> Set the Expresion to:
> DateValue([DateField] = Date()
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
> Thanks, Simplicity, just what I wanted.
Back to top
Login to vote
Linq Adams via AccessMons

External


Since: Aug 28, 2007
Posts: 208



(Msg. 4) Posted: Sat Aug 16, 2008 1:41 pm
Post subject: Re: Date Fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Where YourDateTimeField is the name of your control holding the date/time
data.

Date = Left([YourDateTimeField],Instr([YourDateTimeField]," ")-1)

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

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-gettingstarted/200808/1
Back to top
Login to vote
Linq Adams via AccessMons

External


Since: Aug 28, 2007
Posts: 208



(Msg. 5) Posted: Sat Aug 16, 2008 4:02 pm
Post subject: Re: Date Fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I knew there was a native Access function that would pull the date part from
a date/time field, Fred, but I couldn't for the life of me remember what it
was called!

;0)>

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

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Getting Started All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET