Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Need help to solve err#429

I don't know how to solve this problem. I've found run-time error 429. My
code is below:


Dim db As Database
Dim rst As Recordset
Dim wb As Object

Set wb = Sheets("Sheet1")
xPathAndName = Trim(xPath) + Trim("MainDBProject.mdb")

'this line is cuase of error
Set db = Workspaces(0).OpenDatabase(xPathAndName, ReadOnly:=True)

Set rst = db.OpenRecordset("InputTB")

I have main interface in ms Access. Once run the application in ms access,
it will open excel workbook. The code above is in Excel. So I'm not sure that
the error occur because of "MainDBProject.mdb" is already opened.


Please give me suggestion.

Thanks,
March
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Let's see if you can solve this. Sean[_2_] Charts and Charting in Excel 5 June 7th 07 05:14 PM
How do I solve for x? Joanna Excel Worksheet Functions 4 January 22nd 07 03:01 PM
need help to solve this klaengur Excel Discussion (Misc queries) 2 May 9th 06 09:09 AM
y i cannot solve it ? cjjoo Excel Worksheet Functions 2 September 26th 05 11:37 AM
is there anything to solve this? Emty Excel Worksheet Functions 1 January 27th 05 08:19 PM


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"