954,168 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Is it possible to display report in Visual Basic which is created in Microsoft Access

Is it possible to display report in Visual Basic which is created in Microsoft Access?

We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call this report in Access thr' VB.

sham
Light Poster
40 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

I'm not sure if this what you are looking for, but have you looked at crystal reports?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

Is it possible to display report in Visual Basic which is created in Microsoft Access?

We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call this report in Access thr' VB.


ya u can..

N[e]tt[e]
Newbie Poster
18 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 
I'm not sure if this what you are looking for, but have you looked at crystal reports?

Yaa, I know crystal reports, but it needs additional licence cost.
One of the reports I wanted could not be developed in Data Reports since it has subreport control(master-detail) in it and few field/control calculations.

I developed this report in Access where all the data resides for this project. Now I want a short from VB to be developed so as to open Access report.
I hope this clarifies scenario.

=Sham

sham
Light Poster
40 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

There is no built-in control to display access reports in Visual BASIC. However, there are several third-party components (some of which cost $$$) that can be used for this purpose. Hope this helps!

Richard Henerlau

rhenerlau
Newbie Poster
9 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

Is it possible to display report in Visual Basic which is created in Microsoft Access?

We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call this report in Access thr' VB.

Why don't you check out VB6 Shell to MSACCESS.exe pass report name as a parameter.

RetVal = Shell("C:\Program Files\Microsoft Office\Office\MSACCESS.exe YourDB.mdb /cmd Rpt001", 1)

You can look up in Access the Command Line parameters the /cmd says you are passing a parameter, you could have code in access to intercept this parameter in I believe Command$. Then you can Docmd to open the report based on the parameter sent in like in this case Rpt001.

Mike

Mike Vance
Newbie Poster
4 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

:?: Wouldn't that require everyone that wants to view the report to have copy of Access?? (not the runtime)

Which is what he is trying to avoid

He would need VB6 Professional version, Both Crystal Reports and Data Reports are in the controls.

-----------
Kegtapper

Why don't you check out VB6 Shell to MSACCESS.exe pass report name as a parameter.

RetVal = Shell("C:\Program Files\Microsoft Office\Office\MSACCESS.exe YourDB.mdb /cmd Rpt001", 1)

You can look up in Access the Command Line parameters the /cmd says you are passing a parameter, you could have code in access to intercept this parameter in I believe Command$. Then you can Docmd to open the report based on the parameter sent in like in this case Rpt001.

Mike

Kegtapper
Junior Poster
116 posts since Oct 2005
Reputation Points: 13
Solved Threads: 4
 

Is it possible to display report in Visual Basic which is created in Microsoft Access?

We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call this report in Access thr' VB.


Si vos ya tenés creado el reporte (v.g. tureporte.rpt) lo podés llamar de donde quieras y cuando quieras. Lo que te sugiero es que desde tu programa en Visual Basic le mandes el recordset que tu previamente crearas en tu aplicación no solo porque es una práctica saludable sino evitar problemas de database (por ejemplo, tu creás el reporte usando Access y tu aplicación usa MySql, que tal?)
Regards
Chiquito

Chiquito
Newbie Poster
2 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You