A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date parameters



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 07:34 PM posted to microsoft.public.access
Norm
external usenet poster
 
Posts: 149
Default Date parameters

I want to be able to enter a date and have it pull everthing 30 days in the
future... it is for expiry date warnings
  #2  
Old May 24th, 2010, 08:25 PM posted to microsoft.public.access
John Spencer
external usenet poster
 
Posts: 7,815
Default Date parameters

You could use criteria like

Between [Enter Start Date] and DateAdd("d",30,[Enter Start Date])

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Norm wrote:
I want to be able to enter a date and have it pull everthing 30 days in the
future... it is for expiry date warnings

  #3  
Old May 24th, 2010, 09:18 PM posted to microsoft.public.access
Norm
external usenet poster
 
Posts: 149
Default Date parameters

Thanks John
I tried this and when I enter the start date the too complex box pops up
Is there something I missed or forgot to do, I entered the statement below
in the criteria box
Cheers!!!

"John Spencer" wrote:

You could use criteria like

Between [Enter Start Date] and DateAdd("d",30,[Enter Start Date])

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Norm wrote:
I want to be able to enter a date and have it pull everthing 30 days in the
future... it is for expiry date warnings

.

  #4  
Old May 24th, 2010, 10:13 PM posted to microsoft.public.access
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Date parameters

Are you setting this criteria against a true date field? If so, you may need
to add the data type in the Query-Parameters:
[Enter Start Date] Date/Time

--
Duane Hookom
Microsoft Access MVP

NOTE: These public News Groups are ending June 1st. Consider asking
questions at http://social.answers.microsoft.com/...ddbuz/threads?


"Norm" wrote:

Thanks John
I tried this and when I enter the start date the too complex box pops up
Is there something I missed or forgot to do, I entered the statement below
in the criteria box
Cheers!!!

"John Spencer" wrote:

You could use criteria like

Between [Enter Start Date] and DateAdd("d",30,[Enter Start Date])

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Norm wrote:
I want to be able to enter a date and have it pull everthing 30 days in the
future... it is for expiry date warnings

.

  #5  
Old May 25th, 2010, 01:58 AM posted to microsoft.public.access
Norm
external usenet poster
 
Posts: 149
Default Date parameters

I cannot change data type as this is a linked table
Is there any other way?

"Duane Hookom" wrote:

Are you setting this criteria against a true date field? If so, you may need
to add the data type in the Query-Parameters:
[Enter Start Date] Date/Time

--
Duane Hookom
Microsoft Access MVP

NOTE: These public News Groups are ending June 1st. Consider asking
questions at http://social.answers.microsoft.com/...ddbuz/threads?


"Norm" wrote:

Thanks John
I tried this and when I enter the start date the too complex box pops up
Is there something I missed or forgot to do, I entered the statement below
in the criteria box
Cheers!!!

"John Spencer" wrote:

You could use criteria like

Between [Enter Start Date] and DateAdd("d",30,[Enter Start Date])

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Norm wrote:
I want to be able to enter a date and have it pull everthing 30 days in the
future... it is for expiry date warnings
.

  #6  
Old May 25th, 2010, 03:35 AM posted to microsoft.public.access
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Date parameters

Can you provide the SQL view?
Can you provide the actual data type?
Can you provide some sample values in the field?
Have you checked any help on how to convert a field to a date value?


--
Duane Hookom
MS Access MVP


"Norm" wrote in message
...
I cannot change data type as this is a linked table
Is there any other way?

"Duane Hookom" wrote:

Are you setting this criteria against a true date field? If so, you may
need
to add the data type in the Query-Parameters:
[Enter Start Date] Date/Time

--
Duane Hookom
Microsoft Access MVP

NOTE: These public News Groups are ending June 1st. Consider asking
questions at
http://social.answers.microsoft.com/...ddbuz/threads?


"Norm" wrote:

Thanks John
I tried this and when I enter the start date the too complex box pops
up
Is there something I missed or forgot to do, I entered the statement
below
in the criteria box
Cheers!!!

"John Spencer" wrote:

You could use criteria like

Between [Enter Start Date] and DateAdd("d",30,[Enter Start
Date])

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Norm wrote:
I want to be able to enter a date and have it pull everthing 30
days in the
future... it is for expiry date warnings
.

  #7  
Old May 28th, 2010, 07:08 PM posted to microsoft.public.access
regina henn
external usenet poster
 
Posts: 1
Default Date parameters


"Norm" schrieb im Newsbeitrag
...
I want to be able to enter a date and have it pull everthing 30 days in

the
future... it is for expiry date warnings



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.