473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Access query date is not returning all results can is there way to adjust

Hi there
Programmers have made a change in the database format for dates. This is causing query to not pull all the results.
Before the date format was mm/dd/yyyy: 00:00:00:000
to mm/dd/yyyy 05:00:00:000. This is causing my pre-existing access query that is either simple prompt to users to enter start date and enter end date. Where they enter 04/01/2015 and 04/30/2015 or some of the queries have date specified as
between #04/01/2015# and #04/30/2015#.
the queries are not picking up transactions dated 04/30/2015 05:00:00: 000
If I change the query to be < #5/1/2015 will that work ? I do not want to pick up transactions for the next month
is there another way I can handle this date problem?
thanks in advance for any replies
Nov 24 '15 #1
3 1309
Rabbit
12,516 Expert Mod 8TB
Change it to #04/30/2015 5:00:00#
Nov 24 '15 #2
mbizup
80 64KB
BETWEEN includes the 'endpoints'.

Changing the query to use the < operator instead of BETWEEN will get everything up to but not including the endpoint, so

[YourDateField] >= #04/01/2015# AND [YourDateField] <#04/30/2015#

Should get everything from #04/01/2015 00:00:00# to the very end of 4/30/2015 (but not including 5/1), regardless of time stamp.
Nov 24 '15 #3
zmbd
5,501 Expert Mod 4TB
From MVP Allen Browne: http://allenbrowne.com/casu-08.html
Nov 24 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: david liu | last post by:
access 2000 query: here's what i want to do. from an asp page, perform a search on a table in access. i have used sql code in the asp page itself, but i'd rather execute a query in access. i...
1
by: Cady Steldyn | last post by:
Example: Date | ItemCode | Stock_In_qty | Stock_Out_qty | Bal_qty ------------------------------------------------------------------ 12/09/2003 | A100 | 20 | 0 ...
0
by: Sinead ORiordan | last post by:
I am running a vb6 application which accesses an SQL server database and an Access database. I have a table in the access db which is populated every time i run the vb app. However, when i run...
1
by: Brian Jorgenson | last post by:
I am looking for a formula to put in my query to pull data based on the last 3 months. It starts with the current day and will go back 3 months. Here is my wrkflow language for example: ...
5
by: redstamp | last post by:
Try as I might I cannot find a way to write an access query to return a result set with the records from my database WITHOUT a certain set of values within a field. To explain, I have a table of...
2
by: pidoling | last post by:
I am working on this query that includes two tables. the first table(withpay) has detail information and the second table (txdata) has the summary of data. withpay (join) ...
4
by: JamieF | last post by:
Sorry if I've missed something obvious, but I'm trying to do a really basic update query in Access 2007, and I can't get it to work. UPDATE DISC INNER JOIN DISC2 ON DISC.DiscID = DISC2.DiscID SET...
14
by: iheartvba | last post by:
Hi I am running the following query in access query builder. The name of the query is "qryTempRecEFTBankedMaxDate": SELECT Max(qryTempRecEFTBanked.Dt) AS MaxOfDt FROM qryTempRecEFTBanked; it...
0
by: uno7031 | last post by:
Help Please!!! Adding 5 Days to another Date in an access query Good Morning, Help please…. I am new to access and trying to write a query that will add 5 days between a RecDate and a...
13
by: luciegiles | last post by:
Hi, In an Access query I am using an IIf statement below to calculate the time between two dates; this is defined as : Period1: IIf(<Date(),DateDiff('d',,,DateDiff('d',,Date()))) In the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.