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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query last 7 days



 
 
Thread Tools Display Modes
  #1  
Old February 15th, 2007, 09:58 PM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 2
Default Query last 7 days

HELP!!!

Using Access 2000, I have a field titled "Open (date)", I am trying to
create a query that gives me only records that have been opened in the
last 7 days.

Using Expression Builder I have:

=Date()-"7"


It returns the records from the last 7 days but it also has a record
from last year. This sounds like it should be easy, but I am teaching
myself on the job. Any help would be greatly appreciated!

Craig

  #2  
Old February 15th, 2007, 10:07 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Query last 7 days

Try it without the quotes around the number seven.

" wrote:

HELP!!!

Using Access 2000, I have a field titled "Open (date)", I am trying to
create a query that gives me only records that have been opened in the
last 7 days.

Using Expression Builder I have:

=Date()-"7"


It returns the records from the last 7 days but it also has a record
from last year. This sounds like it should be easy, but I am teaching
myself on the job. Any help would be greatly appreciated!

Craig


  #3  
Old February 16th, 2007, 01:13 PM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 2
Default Query last 7 days

I entered it without the quotes and they automatically appeared when I
clicked out of the area.

  #4  
Old February 16th, 2007, 04:20 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Query last 7 days

So, is your problem solved?

" wrote:

I entered it without the quotes and they automatically appeared when I
clicked out of the area.


 




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 05:23 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.