Createworkspace problem in VB4 (Help)

Createworkspace problem in VB4 (Help)

Post by Brad Welc » Thu, 27 Mar 1997 04:00:00



If I have a valid Access user id & password (confirmed by running access)
why would I get a runtime error 3029  "Not a valid account name or
password"  while creating a workspace as in the following code.
=============================
' User and Pswd are set in earlier code (have also tried hardcoding)
' Note:  Set the inipath or will error with SYSTEM.MDA not available
DBEngine.IniPath = "C:\Windows\MSACC20.ini"
Set wsStock = DBEngine.CreateWorkspace("", User, Pswd)

Comment out the createworkspace and the following non-secured code does
work
===============================
Set dbStock = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\stock.mdb")
======

I'm Using Win95 OS,  VB4-16bit with Access 2.0  (enduser is in win3.1)

 
 
 

Createworkspace problem in VB4 (Help)

Post by Harold Henry I » Thu, 27 Mar 1997 04:00:00


This could be caused by the DBEngine already being initialized.  Try adding
the following line before any reference to the DBEngine:

Set DBEngine = Nothing

 
 
 

Createworkspace problem in VB4 (Help)

Post by Brad Welc » Thu, 27 Mar 1997 04:00:00


Nope,
That didn't work.



Quote:> This could be caused by the DBEngine already being initialized.  Try
adding
> the following line before any reference to the DBEngine:

> Set DBEngine = Nothing

 
 
 

Createworkspace problem in VB4 (Help)

Post by Brad Welc » Thu, 27 Mar 1997 04:00:00


If I have a valid Access user id & password (confirmed by running access)
why would I get a runtime error 3029  "Not a valid account name or
password"  while creating a workspace as in the following code.
=============================
' User and Pswd are set in earlier code (have also tried hardcoding)
' Note:  Set the inipath or will error with SYSTEM.MDA not available
DBEngine.IniPath = "C:\Windows\MSACC20.ini"
Set wsStock = DBEngine.CreateWorkspace("", User, Pswd)

Comment out the createworkspace and the following non-secured code does
work
===============================
Set dbStock = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\stock.mdb")
======

I'm Using Win95 OS,  VB4-16bit with Access 2.0  (enduser is in win3.1)

 
 
 

1. Createworkspace problem in VB4-16bit - (Help)

If I have a valid Access user id & password (confirmed by running access)
why would I get a runtime error 3029  "Not a valid account name or
password"  while creating a workspace as in the following code.
=============================
' User and Pswd are set in earlier code (have also tried hardcoding)
' Note:  Set the inipath or will error with SYSTEM.MDA not available
DBEngine.IniPath = "C:\Windows\MSACC20.ini"
Set wsStock = DBEngine.CreateWorkspace("", User, Pswd)

Comment out the createworkspace and the following non-secured code does
work
===============================
Set dbStock = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\stock.mdb")
======

I'm Using Win95 OS,  VB4-16bit with Access 2.0  (enduser is in win3.1)

2. Generating a 100 records database.

3. CreateWorkspace - security problem in VB4

4. pubs database

5. VB4 Prof.: CreateWorkspace

6. fmpro chat channel....many inquiries

7. Help....Error 3028: CreateWorkspace error.

8. CDML - help searhing a date range using pulldowns on the web?

9. Help me understand CreateWorkspace method

10. Jet CreateWorkspace problems in VB 4

11. CreateWorkspace problem

12. HELP! - Error 3633 during VBA CreateWorkspace

13. Problems with CreateWorkspace() method