Runs fine, but chokes on database when compiling 
Author Message
 Runs fine, but chokes on database when compiling

I'm creating a program that runs fine in the Visual Basic environment, but
chokes with a "Permission Denied" error when I try to compile it. I think
it's having a problem creating a workspace, but I don't know why. Here's
where it has the problem:

Set dbs = OpenDatabase(ResumeDirectory & "Resumes.mdb")

If I try to create the workspace, then execute this line, it will {*filter*}
where the workspace is being created first.

This is driving me nuts.



Sun, 22 Apr 2001 03:00:00 GMT  
 Runs fine, but chokes on database when compiling
Hi there,

  In VB, by default it use workspaces(0). if you want to create another
workspace, then open database under the workspace, you have to change your
code to:

'wkspace is the new workspace that you created
Set dbs = wkspace.OpenDatabase(ResumeDirectory & "Resumes.mdb")

Quote:

>I'm creating a program that runs fine in the Visual Basic environment, but
>chokes with a "Permission Denied" error when I try to compile it. I think
>it's having a problem creating a workspace, but I don't know why. Here's
>where it has the problem:

>Set dbs = OpenDatabase(ResumeDirectory & "Resumes.mdb")

>If I try to create the workspace, then execute this line, it will {*filter*}
>where the workspace is being created first.

>This is driving me nuts.



Sun, 22 Apr 2001 03:00:00 GMT  
 Runs fine, but chokes on database when compiling

Quote:
>Hi there,

>  In VB, by default it use workspaces(0). if you want to create another
>workspace, then open database under the workspace, you have to change your
>code to:

>'wkspace is the new workspace that you created
>Set dbs = wkspace.OpenDatabase(ResumeDirectory & "Resumes.mdb")

Setting up a workspace hasn't made a difference for me. I've let VB use the
default and I've specified the workspace it should use. Both work fine, but
when I compile it, it will {*filter*}where the workspace is being created. I
don't know how to fix this.


Sun, 22 Apr 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Runs fine, but chokes at workspace when trying to compile

2. Crashes in development, runs fine when compiled...

3. vbscript runs fine from local harddrive but fails when run from IIS server

4. CR Automation Server runs once then chokes

5. Access97 Run-time: MDB breaks, MDE works fine

6. code fails win98 but runs win2000 just fine

7. Runs fine, but doesnt leave MSAccess open at end

8. dcom object runs fine in vb app, fails to get created in IIS

9. Win 2000 exe runs fine on 98 but crashes on 95 and NT

10. Run time error only when compiled runs

11. Running VB program compiled with IE 4 on machine running IE 5

12. Fine Tunning DAO to use with a remote database

 

 
Powered by phpBB® Forum Software