|
-
Nov 1st, 2000, 07:23 AM
#1
Thread Starter
Lively Member
Hi I am using VB6, Access97, and am trying to view reports using a ADO DataEnvironment.
I've tried the following code...
Public Sub OpenReport(rptName As String)
Dim objAccess As New Access.Application
objAccess.OpenCurrentDatabase (DataEnvironment1.Connection1)
Screen.MousePointer = vbHourglass
objAccess.DoCmd.OpenReport rptName, View:=acPreview
objAccess.DoCmd.Maximize
Screen.MousePointer = vbDefault
objAccess.Visible = True
...but get the error "Microsoft Access cant open the database because it is missing, or opened exclussively by another user."
I made sure the connection was not already opened... but still get the same error...any ideas?
Cheers Jonny
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|