Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recently moved an access database from one network
drive to another. I have an excel database query to that database that no longer works. Do I have to somehow update the query to look at the new location of the database? How? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm assuming since you posted this in the programming group, you are doing
this query from a macro. So my next assumption is you have something along this in the code. Set cnnDB = New ADODB.Connection With cnnDB .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeRead .Properties("Jet OLEDB:Database Password") = **** .Open "old_database_location_here" Set myrs = New ADODB.Recordset Set myrs = cnnDB.Execute(MySql) End With if this is the case, just change the string after the open command to the location of the new database. Paul D "leslie" wrote in message ... I recently moved an access database from one network drive to another. I have an excel database query to that database that no longer works. Do I have to somehow update the query to look at the new location of the database? How? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Import New Database Query (Union Query) in Spreadsheet | Excel Discussion (Misc queries) | |||
database query not showing foxpro database How I import data | New Users to Excel | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |