MushroomKing
Registered User.
- Local time
- Yesterday, 21:47
- Joined
- Jun 7, 2018
- Messages
- 100
Hi everyone!
I'd like to ask for some help I can't seem to overcome. It's actually fairly simple but I have NO clue what i'm doing anymore.
I have an ODBC connect with a pass through query.
The query works FINE!
Until i try to filter between the date between 2 form fields.
What is going wrong here?
Thanks in advance guys!
Appreciate it.
I'd like to ask for some help I can't seem to overcome. It's actually fairly simple but I have NO clue what i'm doing anymore.
I have an ODBC connect with a pass through query.
The query works FINE!
Until i try to filter between the date between 2 form fields.
What is going wrong here?
Code:
SELECT
ORDER_ID
,STATUS
,TO_CHAR(Ship_By_Date, 'YYYY-MM-DD') AS ShipByDate
FROM 690P.MV_HEADER
WHERE
[B]CLIENT_ID='TMM' And STATUS='Picked' And (((Ship_By_Date) Between [Forms]![main_form]![startdate] And [Forms]![main_form]![enddate]))
[/B]GROUP BY ORDER_ID, STATUS ,TO_CHAR(Ship_By_Date, 'YYYY-MM-DD')
Thanks in advance guys!
Appreciate it.