Between function for dates in Docmd.OpenReport rptName,,[date-filed] BETWEEN #date1# AND #date2# .. NOT WORKING

Please assist, this is a nightmare indeed.
Am trying to filter records in a report using the BETWEEN function, as below:
strCondition = "Format([tblOrderLineTrack_main].[dtAllocation],'dd/MM/yyyy') BETWEEN Format(#06/02/2015#,'dd/MM/yyyy') AND Format(#07/03/2015#,'dd/MM/yyyy')" 
DoCmd.OpenReport strDocName, acViewPreview, , strCondition, acWindowNormal
The report is bringing up all records including those outside the specified range. What could be wrong with this???? Please assist, I am going nuts over this...

The date literals I used are in the
ISO standard for date notation of YYYY-MM-DD so are internationally unambiguous.  The only circumstance I can envisage in which it would not return the rows expected would be the extremely unlikely one where all the rows with dates in the range happen
to have a date of 7 March 2015, and all have a non-zero time of day element.  There is no such thing in Access as a date value, only a date/time value so #2015-03-07# in fact represents the point of time at midnight at the start of 7 March 2015. 
Any rows with date/time values of that date, but with a non-zero time of day would consequently fall outside the range.
The above is so unlikely that I can't believe it to be the case, but the bullet-proof syntax would be:
    strCondition = "dtAllocation  >= #2015-02-06# " & _
          "AND dtAllocation < #2015-03-07#+1"
i.e. all date/time values on or later than the start of the first day of the range (#2015-02-06 00:00:00#) and before the start of the day following the end of the range (#2015-03-08 00:00:00#)
Assuming that the dtAllocation column is of date/time data type, and is returned as such in the report's RecordSource, not as a formatted string expression, I can see no reason on the information available why the above should not work, so if the report is
still not returning any data some other reason not apparent to us must be suspected.  We are not in a position to debug the report, however, so what that might be I can't say.
Ken Sheridan, Stafford, England

Similar Messages

  • I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and g

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

  • The keyboard for my iMac 9, 1 got wet and is not working correctlly. Delete,return, and some other keys not functioning. In all caps including numerals. I've left it to dry for a few days but still will not work. Computer now in Safe boot mode and I c

    The keyboard for my iMac 9, got wet and is not working correctly. Delete ,return, and some other keys not functioning. In all caps including numerals. I've left it to dry for a few days but still will not work. Computer now in Safe boot mode and I can't login due to all caps and numbers being symbols. Is there anything I can do?

    Buy a replacement keyboard. They're only $50-65 USD.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow.

    FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow and never finishes loading ANY page.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • Help!!! I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.

    I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.
    Sorry for my english i'm spanish

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    Kowhai wrote:
    Lots of WIFI needs a username and password to get access. I guess you're lucky and yours is set up unsecured.
    Normal secured WiFi requires only a password to get access. The password is used to encrypt traffic between your device and the WiFi access point. If whatever you are using requires a username as well then it is not simply normal secured WiFi. It might be a subscription WiFi service like GOGO, ATT, etc., or a service with authentication, i.e., college campus, etc. To help you out we need to know what you are using and what connection dialog you are being presented with. You don't have exactly the same problem as the original poster. He is having a problem entering a password into the password dialog that iOS presents when one tries to connect to a normal secured WiFi network. Could you clarify exactly which WiFi service you are using.

  • I have a iPad Keyboard Dock for the iPad 1. I purchase an iPad 2 and the dock worked fine for a week no fit problem none worked. I received a tiny message about  iPad Keyboard Dock it stop working immediately after dismissing message.

    I have a iPad Keyboard Dock for the iPad 1. I purchase an iPad 2 and the dock worked fine for a week no fit problem none worked. I received a tiny message about  iPad Keyboard Dock it stop working immediately after dismissing message.

    Hi and welcome..
    Connect your iPad to your computer. Launch iTunes. Make sure your iPad is recognized in iTunes under Devices on the left.
    Select the Summary tab then click Update.
    Just to make sure your iPad software is up to date.
    Carolyn

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • HT4623 Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.

    Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.
    Maps took me to the completely wrong side of town for a long standing business in town.

    Hello margmcarlson,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting iPhone, iPad, and iPod touch accessories
    http://support.apple.com/kb/TS2634
    Restore iPhone, iPad, or iPod touch to its factory default state. You should rarely need to use this step with an accessory issue.
    Best of luck,
    Mario

  • I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The wid

    Question.
    I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The widget disappear in bloc legend. disparaître. Have you one solution?
    Thank you,
    Loïc

    Accordion or Tabbed panel should to it, with click and open container.
    Please provide site url where this does not work, also if you can provide an example where we can see the exact action then it would help us.
    Thanks,
    Sanjit

  • Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers and firefox

    Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers, firefox, and when trying to move any file from the downloads folder.
    This is a serious pain.
    Please help.
    WB

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • TS3682 i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    First man up and admit, that itunes does not suggest, but tells you that update is available and you made a
    decision to download and update. Once you man up - think if you still under warranty. If that is not security
    software according to the link provided, it is hardware. So second try another network, may be your network
    has additional security or firewall. And third decide if it worth to you pay 149 for that phone or get it replaced.
    Unless your 3gs under warranty.

  • 2 of 4 speakers and Subwoofer not working for Altec Lansing Lucasfilms THX Surround (circa 2003)

    I am attempting to connect my Altec Lansing Lucasfilm THX 5.1 sound system to my HP ENVY All-in-one. I think the original audio card for the sound system came on a Dell with Soundblaster. 
    I have connected the green audio to the jack in the back which only gets 2 of the 4 speakers working (even after configuring the speakers). The subwoofer is connected to the sub jack in the back panel as well and is not working at all. I realize that I am trying to have an ancient sound system work with my fancy new HP Envy. Am I asking too much??  I thought maybe a driver update might be needed. But in theory, if those jacks are available in the back it should work (she says optimistically).
    Any suggestions or advice would be appreciated.

    Not a problem.  Thank you for the additional information.
    It sounds like you have the speakers connected correctly.  If there is only one connector for all of the speakers, it may be that you will only be able to use two of them.  However, I am not certain why the subwoofer isn't working.  Is it selected in the Control Panel / Sound?  I realize that you said the speakers are configured in the Control Panel, but is the subwoofer separate?
    I have an old (2001) Polk Audio set of speakers.  I have only been able to get two of them and the subwoofer to work with my new HP computer.  It sounds fine without the other two speakers.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

Maybe you are looking for

  • There are no readers registered for the sql type.

    SQL Developer 4.0 I added .sql and .ldr as file types via Tools > Preferences > File Types. When I try to open the export.sql file in SQL Developer using the "Import Data" option I get the message: There are no readers registered for the sql type. I

  • WRT150N - No Internet Connection Found

     Well, that's one of the problems. So, here's the deal. When I connect all my wires up properly (modem to router; router to computer; etc.) and try to install the software, it says that an Internet connection can't be found when I clearly have one. I

  • Editing an iWeb site from a second Mac

    I recently purchased ILife 06 and have begun switching my existing web sites on my .mac account to be on iWeb format but i have a few questions: 1. I published the iWeb site with my iBook but I also want to populate and edit it with images from i Pho

  • Partition crash

    My g4 17" mac was partitioned into 3 drives. As I was doing some maintenance, after rebooting, I could no longer access the second 2 drives. Using Disk Utility, I tried to repair the problem and the response was "Disk utility stopped verifying "drive

  • BO Universe Objects

    Hi all I want a list of all the objects in my universe, with the foll details : Class Name, Description, Object Name, Object Description,SQLCode(definition). Is there a query I can use to query the system tables to get this information. Please help!