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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Querying Dates



 
 
Thread Tools Display Modes
  #1  
Old December 22nd, 2009, 03:21 PM posted to microsoft.public.access.forms
scottydont2121 via AccessMonster.com
external usenet poster
 
Posts: 10
Default Querying Dates

Hello,

I have a query with information in it and then one of the fields is a date
field. I would like to further query it so that it only takes the
information for the people that are before a certain date. Everything after
that date I dont want.

For ex: name address date

Jane Doe Whatever St. 12/3/08
Doe Jane Who Knows St 12/15/09

I would like to quere out the people that have a date before 12/10/09. I
tried when I do my query to just put under the date field 12/10/09, but that
didnt work for some reason. It's seems simple enough, I just can't get it
off the top of my head.

Thanks

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

  #2  
Old December 22nd, 2009, 03:59 PM posted to microsoft.public.access.forms
scottydont2121 via AccessMonster.com
external usenet poster
 
Posts: 10
Default Querying Dates

I figured it out. When I imported it in, Access put the date field as a text
field and not a date field. Switched it and it worked fine.

scottydont2121 wrote:
Hello,

I have a query with information in it and then one of the fields is a date
field. I would like to further query it so that it only takes the
information for the people that are before a certain date. Everything after
that date I dont want.

For ex: name address date

Jane Doe Whatever St. 12/3/08
Doe Jane Who Knows St 12/15/09

I would like to quere out the people that have a date before 12/10/09. I
tried when I do my query to just put under the date field 12/10/09, but that
didnt work for some reason. It's seems simple enough, I just can't get it
off the top of my head.

Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

  #3  
Old December 22nd, 2009, 04:11 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Querying Dates

The criteria you used is interperted as 12 divided by 10 divided by 9.
Use this --
#12/10/09#
--
Build a little, test a little.


"scottydont2121 via AccessMonster.com" wrote:

Hello,

I have a query with information in it and then one of the fields is a date
field. I would like to further query it so that it only takes the
information for the people that are before a certain date. Everything after
that date I dont want.

For ex: name address date

Jane Doe Whatever St. 12/3/08
Doe Jane Who Knows St 12/15/09

I would like to quere out the people that have a date before 12/10/09. I
tried when I do my query to just put under the date field 12/10/09, but that
didnt work for some reason. It's seems simple enough, I just can't get it
off the top of my head.

Thanks

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

.

 




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 08:36 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.