Createworkspace problem in VB4-16bit - (Help)

Createworkspace problem in VB4-16bit - (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-16bit - (Help)

Post by Edward C. Otto II » Fri, 28 Mar 1997 04:00:00


Try using Trim$ on both.  Variable length strings sometimes don't get
passed correctly in
subroutine calls.

Ed
--
Edward C. Otto III

"If I had any decent opinoins, I sure wouldn't share them HERE!"
"May the Santa Claus of Life get stuck in your chimney, burn his suit, and
sue for loss of spousal consortium..."



Quote:> 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 (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. FileMaker Developers in Southern California (FMDiSC)

3. CreateWorkspace - security problem in VB4

4. Login Failure

5. VB4, Jet & MDA Problem (16bit)

6. Forms: problem with parameter

7. VB4.0 16Bit App Installation Problem

8. Warning of configuration error in 8.0.5 Linux tarfile

9. VB4.0 16Bit and Access95 Connectivity Problem!!!!

10. Problems with VB4(16bit) ODBC

11. VB4.0 16Bit connectivity problem with Acess95!!!!

12. HELP: VB4(16bit)/ACCESS 2/Netware 4.0 sharing

13. Binding Columns Help Needed (VB4-16bit SQL Server 6.5 )