Hi all
I have the following query in Access. This is the sql view of the query
"
SELECT Right([TRXDATE],7) AS [Month], dbo_GL00100.ACTNUMBR_3, dbo_GL00100.ACTNUMBR_4, dbo_GL00100.ACTDESCR, dbo_GL00102.ACCATDSC, dbo_GL20000M.DSCRIPTN, dbo_GL20000M.USWHPSTD, dbo_GL20000M.TRXDATE, dbo_GL20000M!DEBITAMT-dbo_GL20000M!CRDTAMNT AS Amount, dbo_GL00100.USERDEF1
FROM (dbo_GL00100 INNER JOIN dbo_GL20000M ON dbo_GL00100.ACTINDX = dbo_GL20000M.ACTINDX) INNER JOIN dbo_GL00102 ON dbo_GL00100.ACCATNUM = dbo_GL00102.ACCATNUM
WHERE (((dbo_GL00100.ACTNUMBR_4)<"5999999") AND ((dbo_GL00100.USERDEF1)="Adri Visser") AND ((dbo_GL00100.ACTNUMBR_1)="30"));
"
The fields in blue are calculations that I make in the query itself. I have a form with a textbox called tbxDate. Here I will put in the end date for the query and I want this textbox to be used as criteria in the TRXDATE field to only extract transactions prior to the date that I set
How will I be doing it. Can I do it in MDB or must I do it in SQL. I have 24 queries and all of them must use the same textbox as criteria
Can someone please help
Thanks
I have the following query in Access. This is the sql view of the query
"
SELECT Right([TRXDATE],7) AS [Month], dbo_GL00100.ACTNUMBR_3, dbo_GL00100.ACTNUMBR_4, dbo_GL00100.ACTDESCR, dbo_GL00102.ACCATDSC, dbo_GL20000M.DSCRIPTN, dbo_GL20000M.USWHPSTD, dbo_GL20000M.TRXDATE, dbo_GL20000M!DEBITAMT-dbo_GL20000M!CRDTAMNT AS Amount, dbo_GL00100.USERDEF1
FROM (dbo_GL00100 INNER JOIN dbo_GL20000M ON dbo_GL00100.ACTINDX = dbo_GL20000M.ACTINDX) INNER JOIN dbo_GL00102 ON dbo_GL00100.ACCATNUM = dbo_GL00102.ACCATNUM
WHERE (((dbo_GL00100.ACTNUMBR_4)<"5999999") AND ((dbo_GL00100.USERDEF1)="Adri Visser") AND ((dbo_GL00100.ACTNUMBR_1)="30"));
"
The fields in blue are calculations that I make in the query itself. I have a form with a textbox called tbxDate. Here I will put in the end date for the query and I want this textbox to be used as criteria in the TRXDATE field to only extract transactions prior to the date that I set
How will I be doing it. Can I do it in MDB or must I do it in SQL. I have 24 queries and all of them must use the same textbox as criteria
Can someone please help
Thanks