M
Mark
Hi All,
1. Currently I'm using below query to show me tax amount
of sales. Main field in this query is DEFAULT_TAX_CODE
which is basicly only got for type of data (F,Z,E,T).
There is also TAX_AMT field which prints the tax amount. I
need this query to show the tax amount(TAX_AMT) in 4
different column(F,T,E,T). Something like,
if (TAX_AMT)is F then print the (TAX_AMT) on column A,
if (TAX_AMT)is Z then print the (TAX_AMT) on column B,
if (TAX_AMT)is E then print the (TAX_AMT) on column C,
if (TAX_AMT)is T then print the (TAX_AMT) on column D,
SELECT [APSUPPS Query].SUPPLIER_NO, [APSUPPS Query].NAME1,
[APSUPPS Query].DEFAULT_TAX_CODE, [APTRANS Query].DOC_NO,
[APTRANS Query].DOC_DATE, [APTRANS Query].POSTING_DATE,
[APSUPPS Query].FOR_CURR_CODE, [APTRANS
Query].FOR_CURR_RATE, [APTRANS Query].AMT, [APTRANS
Query].TAX_AMT
FROM [APSUPPS Query] INNER JOIN [APTRANS Query] ON
[APSUPPS Query].SUPPLIER_NO = [APTRANS Query].SUPPLIER_NO
ORDER BY [APSUPPS Query].SUPPLIER_NO;
2. How can I set a dialog box where when the user run this
query, to ask them what month of query you want to view.
The date field is [APTRANS Query].DOC_DATE as shown above.
Please help me guys. I really appreciate your help.
Best Regards,
Mark
1. Currently I'm using below query to show me tax amount
of sales. Main field in this query is DEFAULT_TAX_CODE
which is basicly only got for type of data (F,Z,E,T).
There is also TAX_AMT field which prints the tax amount. I
need this query to show the tax amount(TAX_AMT) in 4
different column(F,T,E,T). Something like,
if (TAX_AMT)is F then print the (TAX_AMT) on column A,
if (TAX_AMT)is Z then print the (TAX_AMT) on column B,
if (TAX_AMT)is E then print the (TAX_AMT) on column C,
if (TAX_AMT)is T then print the (TAX_AMT) on column D,
SELECT [APSUPPS Query].SUPPLIER_NO, [APSUPPS Query].NAME1,
[APSUPPS Query].DEFAULT_TAX_CODE, [APTRANS Query].DOC_NO,
[APTRANS Query].DOC_DATE, [APTRANS Query].POSTING_DATE,
[APSUPPS Query].FOR_CURR_CODE, [APTRANS
Query].FOR_CURR_RATE, [APTRANS Query].AMT, [APTRANS
Query].TAX_AMT
FROM [APSUPPS Query] INNER JOIN [APTRANS Query] ON
[APSUPPS Query].SUPPLIER_NO = [APTRANS Query].SUPPLIER_NO
ORDER BY [APSUPPS Query].SUPPLIER_NO;
2. How can I set a dialog box where when the user run this
query, to ask them what month of query you want to view.
The date field is [APTRANS Query].DOC_DATE as shown above.
Please help me guys. I really appreciate your help.
Best Regards,
Mark