Private Sub erikatesting_Click() Dim dbs As DAO.Database Dim myQueryDef As DAO.QueryDef Dim strSql As String Dim rst As DAO.Recordset Dim DEPT As String Set dbs = CurrentDb() Set rst = dbs.OpenRecordset("AcctPeriod_tbl") DEPT = rst!DeptID strSql = "SELECT A.ACCOUNT AS ACCOUNT, B.DESCR AS DESCR, A.DEPTID AS DEPT, A.PRODUCT PRODUCT, FISCAL_YEAR AS YEAR, " & _ "FROM PSFSP8.PS_LEDGER A, PSFSP8.PS_GL_ACCOUNT_TBL B " & _ "WHERE ( A.BUSINESS_UNIT = ('WDBIL') " & _ "AND A.DEPTID = DEPT & _ " GROUP BY A.ACCOUNT, B.DESCR, A.PRODUCT, A.DEPTID, A.FISCAL_YEAR " & _ " ORDER BY 3, 1 WITH UR;"
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE