![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
In MS Query I have a filter in the criteria that looks like this: >='20180903' And <='20181019'. (The dates in this field are text instead of date format, yyyymmdd)
I want to change it from the above to: >=[enter start date] And <=[enter end date] (or an equivalent), but apparently because of the text format it returns an error message. Suggestions? Thanks for any help you can provide. |
#2
|
||||
|
||||
![]()
Hi and welcome
any chance of changing the fields to real dates ( data - text to columns - Delimited - Next - Next - Check " Date" - Select YMD from dropdown - Finish) ?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
In source are string values instead of dates?
I'm not sure without testing it out, does MS Query use worksheet or VBA syntax in formulas, so you try either ...>= TEXT([enter start date], "yyyymmdd") AND ... <= TEXT([enter end date], "yyyymmdd") or ...>= FORMAT([enter start date], "yyyymmdd") AND ... <= FORMAT([enter end date], "yyyymmdd") |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
X axis graph all dates when date column contains specific dates..possible ? | DBenz | Excel | 2 | 03-28-2018 04:59 AM |
![]() |
keepcalmandreadabook | Word | 5 | 03-27-2017 04:08 PM |
Google "=Filter()" function excel equivalent. | Sadodare | Excel | 0 | 08-01-2016 11:15 AM |
Formula for filter "Incomplete Tasks for User..." | patrickd123 | Project | 1 | 04-07-2015 08:15 AM |
![]() |
s_samira_21 | Excel | 2 | 02-08-2015 10:34 PM |