Dear Experts,
I was was wondering if there was some way to specify output properties of a make table query. Specifically, I am haivng a problem with numbers being specified as text. while I realize I can go in and change the table properties after the table has been created, I create and replace this table quite often so that would become a laborious prcess. Is there some way I can make the query specify that for me. I am using access 2003 and the VBA script of the make talbe query is as follows:
[CODE=sql]
SELECT Accounts.Accoun tNumber, Accounts.Accoun tName, Section1Budget. budgetedAmount, NZ([Section 1 Reappropriation s]![budgetedAmount],0) AS Reappropriation s, NZ(NZ([Section1Budget]![budgetedAmount])+NZ([Section 1 Reappropriation s]![budgetedAmount]),0) AS [current appropriations], NZ([section1directP ayVouchers]![SumOfAmount])+ NZ([Section1SPO]![SumOfAmount])+ NZ([Section1Requsit ions]![SumOfAmount]) AS Encumbrances, NZ([current appropriations]-[Encumbrances],0) AS [budget afterencumbranc es], NZ([appaidsection1]![SumOfAPPaidAmou nt],0) AS APPaid, NZ([current appropriations],0)-NZ([APPaid],0) AS [Expendable Funds] INTO section1report
FROM Section1Budget RIGHT JOIN (Section1Requsi tions RIGHT JOIN (section1direct PayVouchers RIGHT JOIN ([Section 1 Reappropriation s] RIGHT JOIN (appaidsection1 RIGHT JOIN (Accounts LEFT JOIN Section1SPO ON Accounts.Accoun tNumber = Section1SPO.Acc ountNumber) ON appaidsection1. AccountNumber1 = Accounts.Accoun tNumber) ON [Section 1 Reappropriation s].[Account Number] = Accounts.Accoun tNumber) ON section1directP ayVouchers.Acco unt = Accounts.Accoun tNumber) ON Section1Requsit ions.Account = Accounts.Accoun tNumber) ON Section1Budget.[Account Number] = Accounts.Accoun tNumber;
[/CODE]
any help you can give me would be greatly appreciated.
-Andy
I was was wondering if there was some way to specify output properties of a make table query. Specifically, I am haivng a problem with numbers being specified as text. while I realize I can go in and change the table properties after the table has been created, I create and replace this table quite often so that would become a laborious prcess. Is there some way I can make the query specify that for me. I am using access 2003 and the VBA script of the make talbe query is as follows:
[CODE=sql]
SELECT Accounts.Accoun tNumber, Accounts.Accoun tName, Section1Budget. budgetedAmount, NZ([Section 1 Reappropriation s]![budgetedAmount],0) AS Reappropriation s, NZ(NZ([Section1Budget]![budgetedAmount])+NZ([Section 1 Reappropriation s]![budgetedAmount]),0) AS [current appropriations], NZ([section1directP ayVouchers]![SumOfAmount])+ NZ([Section1SPO]![SumOfAmount])+ NZ([Section1Requsit ions]![SumOfAmount]) AS Encumbrances, NZ([current appropriations]-[Encumbrances],0) AS [budget afterencumbranc es], NZ([appaidsection1]![SumOfAPPaidAmou nt],0) AS APPaid, NZ([current appropriations],0)-NZ([APPaid],0) AS [Expendable Funds] INTO section1report
FROM Section1Budget RIGHT JOIN (Section1Requsi tions RIGHT JOIN (section1direct PayVouchers RIGHT JOIN ([Section 1 Reappropriation s] RIGHT JOIN (appaidsection1 RIGHT JOIN (Accounts LEFT JOIN Section1SPO ON Accounts.Accoun tNumber = Section1SPO.Acc ountNumber) ON appaidsection1. AccountNumber1 = Accounts.Accoun tNumber) ON [Section 1 Reappropriation s].[Account Number] = Accounts.Accoun tNumber) ON section1directP ayVouchers.Acco unt = Accounts.Accoun tNumber) ON Section1Requsit ions.Account = Accounts.Accoun tNumber) ON Section1Budget.[Account Number] = Accounts.Accoun tNumber;
[/CODE]
any help you can give me would be greatly appreciated.
-Andy
Comment