473,657 Members | 2,587 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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 1316
Rabbit
12,516 Recognized Expert Moderator MVP
Change it to #04/30/2015 5:00:00#
Nov 24 '15 #2
mbizup
80 New Member
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 Recognized Expert Moderator Expert
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
2804
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 have success in running any query (basic SELECT, SELECT with conditions _other_ than LIKE, etc..) for some reason, when i execute the query below from the asp page, i get no results. the search.asp page just has a text box in a form that submits...
1
1948
by: Cady Steldyn | last post by:
Example: Date | ItemCode | Stock_In_qty | Stock_Out_qty | Bal_qty ------------------------------------------------------------------ 12/09/2003 | A100 | 20 | 0 | 20 25/10/2003 | A100 | 0 | 10 | *10 I need to query an Access database that will take field 3 (Stock_In_qty) plus any bal from
0
1396
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 the application and run an access query which just changes the order of the above table to get the recordset, there is one record missing, always the same record. Can anyone please help me as i can't solve this as the record is not missing from the...
1
977
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: CURRENT_DATE = current date PAST_DATE = CURRENT_DATE - 3 months
5
2547
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 customers linked to a table of customer contacts. The contact table has a field called 'type of contact'. Contact types can be numeric 1 to 40 and show the different types of contact I have with my customers (e.g. 1 - initial contact, 2 -...
2
2383
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) withpay withpay txdata txdata txdata EMPLOYEE_CUSTOMINT1 Pay Code Pay Amount Total Earnings Fit Amt ID A05257 O/T 114.16 874.96 81.98 32 A05257 ...
4
1837
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 DISC.Filename = .; The Filename field in DISC is null throughout. Some of the values (62 records) in DISC2 are populated. Other than this, both tables are identical. I'm trying to get the DISC2 values into DISC. The results grid shows just...
14
3783
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 returns a date which exactly what I wanted, but when I run this code in VBA: strSqlMaxDate = "qryTempRecEFTBankedMaxDate" rst.Open strSqlMaxDate, cnn, adOpenDynamic, adLockOptimistic
0
2735
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 DLPayDate I created the query in design view of access. Current Query: SELECT PaymentCalculator2.ID, PaymentCalculator2.RecDate, DateAdd("w",5+1,) AS DLPayDate, DateAdd("w",5,) AS DLPayDate2 FROM PaymentCalculator2 WHERE...
13
2308
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 same query I am using the following IIf statement to return or a 0: ExcludePeriod1: IIf( Between And Or Is Null,,0)
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.