178ed Current Date Anniversary Query
Sign Up |  Live StatsLive Stats    Articles 37,332| Comments 177,279| Members 19,416, Newest Kaylee| Online 597
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Current Date Anniversary Query

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Query sort on Date! Bob Information Technology 3 28-Jul-2006 08:32 AM
Query to grab records in current month only tsison7 Information Technology 4 28-Jul-2006 08:26 AM
Current date in a table field msanewbee Information Technology 3 28-Jul-2006 08:25 AM
Date Query Problem luis.c.torres@gmail.com Information Technology 1 28-Jul-2006 08:10 AM
Query Active Directory for current user's OU? JMMRail Information Technology 0 30-Oct-2005 12:47 PM


Tags
current, date, anniversary, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 04-Nov-2005, 15:19 PM
AndyH's Avatar AndyH
Guest
 
Posts: n/a
   
   
Current Date Anniversary Query

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi
I have built a very simple small db that is basically a way of recording
events in history.
What I have is the following fields: category, date, heading and details
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6600-current-date-anniversary-query.html

I am tring to do is run a query that will extract all the entries that fall
on today's date ie all the 3/11.
ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is to
extract all the current day anniversary events
I am a bit stuck what criteria to write in the query design. Tried the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
expression builder no joy..

any advice would be greatly appreciated..
thanks in advance
andy




Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-Nov-2005, 15:19 PM
Van T. Dinh's Avatar Van T. Dinh
Guest
 
Posts: n/a
   
   
Re: Current Date Anniversary Query

You can use the criterion like:

..... WHERE Format([DateField], "mmdd") = Format(Date(), "mmdd")

or alternatively:

.... WHERE (Month([DateField]) = Month(Date()))
AND (Day([DateField]) =Day(Date()))

--
HTH
Van T. Dinh
MVP (Access)



"AndyH" wrote in message
news:uJoMX$H4FHA.1420@TK2MSFTNGP09.phx.gbl...
> Hi
> I have built a very simple small db that is basically a way of recording
> events in history.
> What I have is the following fields: category, date, heading and details
>
> I am tring to do is run a query that will extract all the entries that
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
> fall on today's date ie all the 3/11.
> ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is
> to extract all the current day anniversary events
> I am a bit stuck what criteria to write in the query design. Tried the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
> expression builder no joy..
>
> any advice would be greatly appreciated..
> thanks in advance
> andy
>



Reply With Quote
  #3 (permalink)  
Old 04-Nov-2005, 15:19 PM
AndyH's Avatar AndyH
Guest
 
Posts: n/a
   
   
Re: Current Date Anniversary Query

Spot On
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
Many many thanks
andy
"Van T. Dinh" wrote in message
news:uq6rwDI4FHA.3036@TK2MSFTNGP15.phx.gbl...
> You can use the criterion like:
>
> .... WHERE Format([DateField], "mmdd") = Format(Date(), "mmdd")
>
> or alternatively:
>
> ... WHERE (Month([DateField]) = Month(Date()))
> AND (Day([DateField]) =Day(Date()))
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "AndyH" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
> news:uJoMX$H4FHA.1420@TK2MSFTNGP09.phx.gbl...
>> Hi
>> I have built a very simple small db that is basically a way of recording
>> events in history.
>> What I have is the following fields: category, date, heading and details
>>
>> I am tring to do is run a query that will extract all the entries that
>> fall on today's date ie all the 3/11.
>> ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is
>> to extract all the current day anniversary events
>> I am a bit stuck what criteria to write in the query design. Tried the
>> expression builder no joy..
>>
>> any advice would be greatly appreciated..
>> thanks in advance
>> andy
>>

>
>



Reply With Quote
  #4 (permalink)  
Old 04-Nov-2005, 15:19 PM
Sprinks's Avatar Sprinks
Guest
 
Posts: n/a
   
   
RE: Current Date Anniversary Query

Andy,

Use two calls to the DatePart function to match the month and day to today's
date.

SELECT YourTable.*
FROM YourTable
WHERE ((DatePart("m",[YourDateField])=DatePart("m",Date()) And
DatePart("d",[YourDateField])=DatePart("d",Date())));

Sprinks

"AndyH" wrote:

> Hi
> I have built a very simple small db that is basically a way of recording
> events in history.
> What I have is the following fields: category, date, heading and details
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
>
> I am tring to do is run a query that will extract all the entries that fall
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
> on today's date ie all the 3/11.
> ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is to
> extract all the current day anniversary events
> I am a bit stuck what criteria to write in the query design. Tried the
> expression builder no joy..
>
> any advice would be greatly appreciated..
> thanks in advance
> andy
>
>
>

Reply With Quote
  #5 (permalink)  
Old 04-Nov-2005, 15:19 PM
James A. Fortune's Avatar James A. Fortune
Guest
 
Posts: n/a
   
   
Re: Current Date Anniversary Query

AndyH wrote:
> Hi
> I have built a very simple small db that is basically a way of recording
> events in history.
> What I have is the following fields: category, date, heading and details
>
> I am tring to do is run a query that will extract all the entries that fall
> on today's date ie all the 3/11.
> ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is to
> extract all the current day anniversary events
> I am a bit stuck what criteria to write in the query design. Tried the
> expression builder no joy..
>
> any advice would be greatly appreciated..
> thanks in advance
> andy
>
>


Events that happened on today's date:

SELECT EventName, EventDate FROM MyTable WHERE Month(EventDate) =
Month(Date()) AND Day(EventDate) = Day(Date());
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600

or

SELECT EventName, EventDate FROM MyTable WHERE Format(EventDate,
'\.mmdd') = Format(Date(), '\.mmdd');

James A. Fortune
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
Reply With Quote
  #6 (permalink)  
Old 04-Nov-2005, 15:19 PM
AndyH's Avatar AndyH
Guest
 
Posts: n/a
   
   
Re: Current Date Anniversary Query

  Donate Today!  
Thanks everyone for your help... very much appreciated..
andy


"James A. Fortune" wrote in message
news:OmKHpLI4FHA.3540@TK2MSFTNGP10.phx.gbl...
> AndyH wrote:
>> Hi
>> I have built a very simple small db that is basically a way of recording
>> events in history.
>> What I have is the following fields: category, date, heading and details
>>
>> I am tring to do is run a query that will extract all the entries that
>> fall on today's date ie all the 3/11.
>> ie pull 3/11/2004 3/11/1999 3/11/2001 etc and leave the rest. The idea is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600
>> to extract all the current day anniversary events
>> I am a bit stuck what criteria to write in the query design. Tried the
>> expression builder no joy..
>>
>> any advice would be greatly appreciated..
>> thanks in advance
>> andy

>
> Events that happened on today's date:
>
> SELECT EventName, EventDate FROM MyTable WHERE Month(EventDate) =
> Month(Date()) AND Day(EventDate) = Day(Date());
>
> or
>
> SELECT EventName, EventDate FROM MyTable WHERE Format(EventDate, '\.mmdd')
> = Format(Date(), '\.mmdd');
>
> James A. Fortune

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6600


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
How does Sikhi help you...
Today 00:52 AM
31 Replies, 959 Views
Transgenderism ... Right...
By Kaylee
Today 00:33 AM
25 Replies, 1,227 Views
Losing My Religion: Why...
Today 00:00 AM
14 Replies, 361 Views
Occultism - Rejection in...
Yesterday 23:57 PM
61 Replies, 2,606 Views
Woolwich Killing: The...
Yesterday 22:09 PM
1 Replies, 24 Views
Kirtan
Yesterday 21:24 PM
0 Replies, 26 Views
Panjabi
Yesterday 21:22 PM
15 Replies, 299 Views
Keeping Amrit Vela
Yesterday 16:49 PM
12 Replies, 932 Views
Do you believe in...
Yesterday 15:08 PM
196 Replies, 4,100 Views
Black Sikhs?
Yesterday 06:33 AM
20 Replies, 5,859 Views
Man Driving Without...
Yesterday 05:06 AM
5 Replies, 145 Views
Request for assistance...
Yesterday 04:24 AM
8 Replies, 96 Views
Health Exercise And...
Yesterday 02:10 AM
1 Replies, 94 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 02:10 AM
176 Replies, 4,518 Views
How Religions Change...
Yesterday 02:07 AM
1 Replies, 111 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 01:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.44707 seconds with 32 queries
0