D
D
Hi:
Can you please tell me how do I change the date format to enter just yyyymm
in the parameter [Rpt_date] in the below qry; now I have to enter mmddyyyy.
Thanks,
Dan
PARAMETERS [Rpt_Date] DateTime;
SELECT Table1.P_SUBTP, Table1.BOOK, Table1.SOURCE_GL, Table1.HEDGE_TP,
Table1.POS, Table1.POS_SUBCAT, Table1.TAX_CLS, Table1.RE_PL, Table1.PTFOLIO,
Table1.DEALNO, Table1.USD, Table1.GBP, Table1.EUR, Table1.HKD, Table1.JPY,
Table1.SGD, Table1.CHF, Table1.AUD, Table1.ILS, Table1.CAD, Table1.ACTIVE_CD,
Table1.DEAL_TP, Table1.INSTR_TP, Table1.TRANS_TP, Table1.BOA, Table1.ORG,
Table1.GL_ACCT, Table1.S_ACCT, Table1.PRODUCT, Table1.COUNTR_NO,
Table1.COUNTR_NM, Table1.TRADE_DATE, Table1.START_DATE,
Table1.LT_MATURITY_DATE, Table1.MATURITY_DATE
FROM Table1
WHERE (((Table1.TRADE_DATE)<=[Rpt_Date]) AND
((Table1.MATURITY_DATE)>[Rpt_Date]));
Can you please tell me how do I change the date format to enter just yyyymm
in the parameter [Rpt_date] in the below qry; now I have to enter mmddyyyy.
Thanks,
Dan
PARAMETERS [Rpt_Date] DateTime;
SELECT Table1.P_SUBTP, Table1.BOOK, Table1.SOURCE_GL, Table1.HEDGE_TP,
Table1.POS, Table1.POS_SUBCAT, Table1.TAX_CLS, Table1.RE_PL, Table1.PTFOLIO,
Table1.DEALNO, Table1.USD, Table1.GBP, Table1.EUR, Table1.HKD, Table1.JPY,
Table1.SGD, Table1.CHF, Table1.AUD, Table1.ILS, Table1.CAD, Table1.ACTIVE_CD,
Table1.DEAL_TP, Table1.INSTR_TP, Table1.TRANS_TP, Table1.BOA, Table1.ORG,
Table1.GL_ACCT, Table1.S_ACCT, Table1.PRODUCT, Table1.COUNTR_NO,
Table1.COUNTR_NM, Table1.TRADE_DATE, Table1.START_DATE,
Table1.LT_MATURITY_DATE, Table1.MATURITY_DATE
FROM Table1
WHERE (((Table1.TRADE_DATE)<=[Rpt_Date]) AND
((Table1.MATURITY_DATE)>[Rpt_Date]));