RE: Excel & MS Query caused compile errors
- From: Joel <Joel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Jun 2009 03:38:01 -0700
You didn't specify what happened to cause the problem. did you perform any
updates to windows, Office, or other products that may of caused the cahnge.
Do yo uhave your window updates set in automatic update mode or did your MIS
department push some updates on your PC?
I suspect one of the DLL got updated.check the References in the VBA menu
tools - References and see if any of the select libraries got updated.
"Simon Shaw" wrote:
Hi,.
After connecting to BusinessVision tables and returning data to Excel, my
VBA code in excel suddenly became un-compileable. Simple code syntax such as
declaring a variable was suddenly invalid. I would comment out the offending
lines to see what else failed, and stopped after about the 12th code failure.
The code compiles fine in numerous environments and runs in Excel 2000, 2003
& 2007 against Pervasive, MS Access, SQL Server, My SQL and Oracle databases.
The error occurs just after manually querying BusinessVision 7.3 with
Pervasive 10 database with Excel for the first time.
Fix Attempts include:
- Uninstalling/re-installing Excel
- removing and adding the System DSN files in the ODBC Drivers
- uninstalling BusinessVision and pervasive
- applying all updates to Excel, BusinessVision and the OS.
none worked
I then started with a clean windows server, installed excel, then installed
BusinessVision. the VBA code still compiled. I then added the System DSN
file. the VBA code still compiled fine. I then performed a manual database
query to retrieve data from the AR - Transaction tables, which was
successful. I then tried to compile the VBA code and it failed - miserably...
:(
thoughts?
Thank you!
--
Simon Shaw, CA | President | Kode101 Inc.
www.kode101.com
- Follow-Ups:
- RE: Excel & MS Query caused compile errors
- From: Greenwind
- RE: Excel & MS Query caused compile errors
- References:
- Excel & MS Query caused compile errors
- From: Simon Shaw
- Excel & MS Query caused compile errors
- Prev by Date: RE: Update table in access from excel
- Next by Date: RE: VBA fails with Run-time Error 429 "ActiveX component can't create
- Previous by thread: Excel & MS Query caused compile errors
- Next by thread: RE: Excel & MS Query caused compile errors
- Index(es):
Relevant Pages
|