ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with External Data Queries (https://www.excelbanter.com/excel-programming/343926-help-external-data-queries.html)

Mike Punko

Help with External Data Queries
 
ok this is what I'm typing for my value in the query

=#2005/10/25 7:00:00 AM# And <=#2005/10/26 8:00:00 AM#


This is what Access changes it to automaticlly

=#2005/10/25 7:00:00 AM# And <=#2005/10/26 8:00:00 AM#


This was a code I got from a helping hand.

Between [Enter a start date] And [Enter an end date]

The plan is to have the [Enter a start date] referance a cell, same goes for
the [end date]. Presently I have cells B1 and B2 with the start and end
date. But no matter which way I try to enter in the dates I keep getting
errors on matches to format string or an error about invalid month. I've
checked my Date formats everywhere I can think of and have changed them all
to yyyy-mm-dd hh:mm:ss AM/PM. Any help would be most kind.




All times are GMT +1. The time now is 04:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com