G
Guest
I want VB code in Excel to call a function to manipulate
data in Access. Access stores Budget, all monthly Actuals
and Forecast data (which is cumbersome in spreadsheet).
I want Excel to Forecast... i.e. it will pass a forecasted
price-set to Access and the VB code will:-
calculate the Forecasts
store these Forecasts in Access tables
populate back the result in Excel for analyses
I have made a working code in Access using DAO. Though
Excel gives me the ability to integrate with Access
using "Get External Data" and run SQL queries, there is
nothing in standard Excel that allows me to run VBA
functions. Hence I thought I could have an ADO code that
connects to the Access database with capability to run the
code in both Excel and Access.
I have hit the following snags (and this is where I could
really use some help).
In DAO FindFirst, Edit and Nomatch() methods are
available. What are the similar methods available in ADO?
When I run the ADO code in Access, I get an error stating
that the database is in use (guess it is because of the
ldb file lock). Is there a way to circumvent this?
Appreciate your response
Rgds,
data in Access. Access stores Budget, all monthly Actuals
and Forecast data (which is cumbersome in spreadsheet).
I want Excel to Forecast... i.e. it will pass a forecasted
price-set to Access and the VB code will:-
calculate the Forecasts
store these Forecasts in Access tables
populate back the result in Excel for analyses
I have made a working code in Access using DAO. Though
Excel gives me the ability to integrate with Access
using "Get External Data" and run SQL queries, there is
nothing in standard Excel that allows me to run VBA
functions. Hence I thought I could have an ADO code that
connects to the Access database with capability to run the
code in both Excel and Access.
I have hit the following snags (and this is where I could
really use some help).
In DAO FindFirst, Edit and Nomatch() methods are
available. What are the similar methods available in ADO?
When I run the ADO code in Access, I get an error stating
that the database is in use (guess it is because of the
ldb file lock). Is there a way to circumvent this?
Appreciate your response
Rgds,