1517a Date criteria with any day
Sign Up |  Live StatsLive Stats    Articles 37,467| Comments 178,614| Members 19,494, Newest Kartarsingh| Online 345
Home Contact
 (Forgotten?): 
    10 years of Excellence
    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

Date criteria with any day

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Open Report adding number and date criteria Garret Information Technology 1 28-Jul-2006 08:39 AM
Query - Based on Form Date Criteria mbp007@gmail.com Information Technology 1 28-Jul-2006 08:32 AM
Date Range Criteria for Crosstab Query Mark Cline Information Technology 6 28-Jul-2006 08:29 AM
Compare date, when date is today, change other fields TxVics Information Technology 1 28-Jul-2006 08:28 AM
date criteria Ryan W Information Technology 1 28-Jul-2006 08:08 AM


Tags
date, criteria, day
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:39 AM
Garret's Avatar Garret
Guest
 
Posts: n/a
   
   
Date criteria with any day

  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
Hello,

I'm looking to open a report using a line of code like this:

DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
"tblGages.LastCalib = #" & Month & "/1/" & Year &
"#"

where Month and Year hold numeric values entered by the user. I have
the "1" there right now as a temporary character. I'm looking to make
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13695-date-criteria-with-any-day.html
it so the criteria uses that Month and Year value, but works for any
day. I thought of some solutions but ran into the problem that some
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
months have 29, some 30, some 31, days.

Thanks for any help.



Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:39 AM
schasteen's Avatar schasteen
Guest
 
Posts: n/a
   
   
RE: Date criteria with any day

DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
"(Month(tblGages.LastCalib) = " & Month & "and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
year(tblGages.LastCalib) = & Year &")"



"Garret" wrote:

> Hello,
>
> I'm looking to open a report using a line of code like this:
>
> DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
> "tblGages.LastCalib = #" & Month & "/1/" & Year &
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
> "#"
>
> where Month and Year hold numeric values entered by the user. I have
> the "1" there right now as a temporary character. I'm looking to make
> it so the criteria uses that Month and Year value, but works for any
> day. I thought of some solutions but ran into the problem that some
> months have 29, some 30, some 31, days.
>
> Thanks for any help.
>
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:39 AM
Garret's Avatar Garret
Guest
 
Posts: n/a
   
   
Re: Date criteria with any day

Thanks, it was just what I wanted. I ended up using this statement:

DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
"(Month(tblGages.LastCalib) = " & Month & _
"and Year(tblGages.LastCalib) = " & Year & ")"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695

It turns out that you left out some quotation marks. Thanks bunches
though!

schasteen wrote:
> DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
> "(Month(tblGages.LastCalib) = " & Month & "and
> year(tblGages.LastCalib) = & Year &")"
>


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:39 AM
schasteen's Avatar schasteen
Guest
 
Posts: n/a
   
   
Re: Date criteria with any day

  Donate Today!  
Sorry , sometimes my typing get ahead of my brain.

"Garret" wrote:

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
> Thanks, it was just what I wanted. I ended up using this statement:
>
> DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13695
> "(Month(tblGages.LastCalib) = " & Month & _
> "and Year(tblGages.LastCalib) = " & Year & ")"
>
> It turns out that you left out some quotation marks. Thanks bunches
> though!
>
> schasteen wrote:
> > DoCmd.OpenReport "rptMontlyCalibration", acViewPreview, , _
> > "(Month(tblGages.LastCalib) = " & Month & "and
> > year(tblGages.LastCalib) = & Year &")"
> >

>
>

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
English Sri Guru Granth Sahib Ji Translations
By Ishna
Today 05:51 AM
1 Replies, 29 Views
What Really Happened on...
Today 05:36 AM
10 Replies, 138 Views
Free Online Gurbani...
Today 03:56 AM
13 Replies, 4,305 Views
English Sri Guru Granth...
Today 03:51 AM
5 Replies, 142 Views
Edward Snowden: the...
Today 03:34 AM
3 Replies, 119 Views
Difference in Bowing...
Today 03:31 AM
10 Replies, 224 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:23 AM
407 Replies, 9,389 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 17:57 PM
255 Replies, 6,029 Views
What Is Difference...
Yesterday 09:18 AM
6 Replies, 174 Views
First There is Water by...
By Ishna
Yesterday 05:03 AM
3 Replies, 189 Views
Cooking Without Alcohol
Yesterday 02:12 AM
12 Replies, 192 Views
Learning from Baba...
Yesterday 01:38 AM
0 Replies, 310 Views
Eckhart Tolle
17-Jun-2013 18:08 PM
2 Replies, 119 Views
Thought of the Moment!
17-Jun-2013 16:35 PM
115 Replies, 6,080 Views
New Quantum Dot...
17-Jun-2013 09:38 AM
0 Replies, 62 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 06:59 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.32478 seconds with 32 queries
0