Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Open current database method

Can anyone tell me why this code is not working I have the
correct information need to support opening the access
database, but this one line keeps failing.

I have never used the Exclusive or the Password part of
this code. How can I do this correctly.

Thank You

dba.OpenCurrentDatabase filepath:=stgPath,[Exclusive =
false], bstrPassword = test
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Open current database method


unless test is a variable that contains the string value
of the password, test shuld be "test"

dba.OpenCurrentDatabase filepath:=stgPath,[Exclusive =
false], bstrPassword = "test"



cheers
Juan


-----Original Message-----
Can anyone tell me why this code is not working I have

the
correct information need to support opening the access
database, but this one line keeps failing.

I have never used the Exclusive or the Password part of
this code. How can I do this correctly.

Thank You

dba.OpenCurrentDatabase filepath:=stgPath,[Exclusive =
false], bstrPassword = test
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Open current database method

wrote ...

dba.OpenCurrentDatabase filepath:=stgPath,[Exclusive =
false], bstrPassword = test


Just a guess but you may want:

dba.OpenCurrentDatabase _
filepath:=stgPath, _
Exclusive:= False, _
bstrPassword:= "test"

Or briefer:

dba.OpenCurrentDatabase stgPath, False, "test"

If test is a variable, omit the quotes.

Jamie.

--
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
Update database from ODBC query (or another method) Richard Edwards Excel Worksheet Functions 4 June 24th 08 11:47 AM
Delete a Table not in Current Database Ross Excel Discussion (Misc queries) 3 May 12th 05 02:51 PM
Open method used Herminio Excel Programming 10 September 12th 04 03:10 PM
Workbook Open method Gwen[_2_] Excel Programming 2 June 2nd 04 05:53 PM
changing current directory to that of the current open file unnameable Excel Programming 2 May 19th 04 11:14 AM


All times are GMT +1. The time now is 12:24 AM.

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

About Us

"It's about Microsoft Excel"