|
-
Oct 21st, 2003, 03:02 PM
#1
Thread Starter
Lively Member
Calling an Access(2000) report from VB6
How can I call a report in Access(2000) from VB6???
-
Nov 4th, 2003, 12:54 AM
#2
New Member
At the following URL (on Microsoft Knowledge Base), look for Previewing or Printing a Report. Also, read from the start since it shows you how to use Access objects :
http://support.microsoft.com/default...b;en-us;147816
Here is a short example:
VB Code:
Set objACCESS = CreateObject("Access.Application")
With objACCESS
.OpenCurrentDatabase strDatabase
.Visible = True
.DoCmd.OpenReport strReportName, acPreview
End With
Set objACCESS = Nothing
JeffB
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
|