General information
Category:
COM/DCOM and OLE Automation
Title:
FoxPro 5.0 and Access 2000 report
Hi,
I have several Microsoft Access 2000 reports that show
data from a MSSQL database.
I would like to execute Access and display reports from
the FoxPro 5.0 form.
This code...
objAccess = CreateObject("Access.Application")
objAccess.OpenCurrentDatabase(mdbName)
objAccess.Visible = .T.
objAccess.DoCmd.OpenReport(rptName)
...has 2 problems:
First problem: I can't preview report. It only prints to
printer.
Second problem: I get MSSQL login dialog box.
I appreciate any help.
Thanks,
Dragan
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only