lloydmav
Registered User.
- Local time
- Today, 11:36
- Joined
- Nov 15, 2002
- Messages
- 75
Hi,
I'm converting a couple of queries that currently have Between Date Criteria.
The first query worked perfectly however my pass through query won't work when I add in the parameter instead of the date. Any ideas?
Before (Works Fine)
After: This one is giving the error Missing Expression
I'm converting a couple of queries that currently have Between Date Criteria.
The first query worked perfectly however my pass through query won't work when I add in the parameter instead of the date. Any ideas?
Before (Works Fine)
Code:
WHERE
S.SLOT_DIS_LYR_TYP = 'S'
AND (AI.AI_REMV_DT BETWEEN '30/JUN/07' AND '30/JUN/08')
AND AI.AI_DEL_FLG <> 'Y'
AND DIS.EQP_CDE = 'MOLE'
After: This one is giving the error Missing Expression
Code:
WHERE
S.SLOT_DIS_LYR_TYP = 'S'
AND (AI.AI_REMV_DT BETWEEN [start date] AND [end date])
AND AI.AI_DEL_FLG <> 'Y'
AND DIS.EQP_CDE = 'MOLE'