Query with dates and number of days

samcooldude1430

Registered User.
Local time
Today, 13:19
Joined
Sep 11, 2016
Messages
13
Dear Experts,

I want to create a in which user would input the start date and the number of days user wants the data. What should be the excel query for the same?

I used WHERE ((([Union_part 2].period_start_time)=[Enter start date:] And ([Union_part 2].period_start_time)=[Enter number of days:])

But it is giving me error!

Please help. Thanks
 
You must make some changes to your query definition. Add the following Parameter definition line at the beginning:

Code:
PARAMETERS enter_StartDt DateTime, enterDays Long;

then make changes to the WHERE clause as follows:

Code:
WHERE (([Union_part 2].period_start_time >=[enter_StartDt]) And ([Union_part 2].period_start_time)<([enter_StartDt]+[enterDays]))
 

Users who are viewing this thread

Back
Top Bottom