Click to See Complete Forum and Search --> : Accessing another application during run-time
I have developed an application with a VB front-end and Access 2000 back-end. I would like to access reports designed in Access 2000, via the visual basic run-time form, in much the same way that crystal reports can be accessed.
Your advice please,
cheers,
Aussie
sanon
Sep 10th, 2000, 12:33 PM
This API function may solve your need.
Public Declare Function WinExec Lib "kernel32" Alias "WinExec" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
'nCmdShow = 1: Show the application when it's running
'nCmdShow = 0: Hide an application like running in background
Shafee
Sep 11th, 2000, 08:15 PM
Or you can use
Dim Acc As Access.Application
You must have Microsoft Access 9.0 Object Library added to your project references.
Sanon, I have seen a lot of you guys using API over this method. What is the advantage of using API for this? (I would like to improve my knowledge)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.