Privateer
Registered User.
- Local time
- Today, 14:47
- Joined
- Aug 16, 2011
- Messages
- 193
Windows 7, Office 2010 VBA 7.0, Access left and right functions work fine. I enter a mid(TBN,4,99) where TBN is a string variable, in this case, the table name. I want to get rid of the "dbo_" that precedes linked tables for a project. When I compile it, I get an error that VBA "expected array". If I comment out the line with Mid function, the compile is successful. Most searches point to references so my references are listed below:
VBA: C:\PROGRA~2\COMMON~1\MICROS~1\VBA\VBA7\VBE7.DLL
Office 14.0 Object Library: C:\Program Files (x86)\Microsoft Office\Office14\MSACC.OLB
OLE Automation: C:\Windows\SysWOW64\stdole2.tlb
Office 14.0 DAO: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL
Version 1628, VBA Retail 7.0.1628, Forms3: 14.0.6009.100
When I tried to re-register the ACEDAO I got an error that the file "was loaded but the entry-point DIIUnregisterServer was not found." So I tried to re-register the VBA file (VBE7.DLL) and that worked fine. So maybe there is something wrong with the ACEDAO.DLL file? The date of the ACEDAO.DLL file is 2/18/2013 15:45 and 533KB in size. Anyone have any thoughts or experienced this before? Any help would be appreciated. Thanks, Privateer
VBA: C:\PROGRA~2\COMMON~1\MICROS~1\VBA\VBA7\VBE7.DLL
Office 14.0 Object Library: C:\Program Files (x86)\Microsoft Office\Office14\MSACC.OLB
OLE Automation: C:\Windows\SysWOW64\stdole2.tlb
Office 14.0 DAO: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL
Version 1628, VBA Retail 7.0.1628, Forms3: 14.0.6009.100
When I tried to re-register the ACEDAO I got an error that the file "was loaded but the entry-point DIIUnregisterServer was not found." So I tried to re-register the VBA file (VBE7.DLL) and that worked fine. So maybe there is something wrong with the ACEDAO.DLL file? The date of the ACEDAO.DLL file is 2/18/2013 15:45 and 533KB in size. Anyone have any thoughts or experienced this before? Any help would be appreciated. Thanks, Privateer