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

Reply

Join Date: Mar 2005
Posts: 40
Reputation: sham is an unknown quantity at this point 
Solved Threads: 0
sham sham is offline Offline
Light Poster

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

 
0
  #1
Apr 4th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

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

 
0
  #2
Apr 4th, 2005
I'm not sure if this what you are looking for, but have you looked at crystal reports?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 18
Reputation: N[e]tt[e] is an unknown quantity at this point 
Solved Threads: 0
N[e]tt[e] N[e]tt[e] is offline Offline
Newbie Poster

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

 
0
  #3
Apr 4th, 2005
Originally Posted by sham
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..
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 40
Reputation: sham is an unknown quantity at this point 
Solved Threads: 0
sham sham is offline Offline
Light Poster

Re: Is it possible to display report in Visual Basic which is created in Microsoft Ac

 
0
  #4
Apr 15th, 2005
Originally Posted by Comatose
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: rhenerlau is an unknown quantity at this point 
Solved Threads: 0
rhenerlau rhenerlau is offline Offline
Newbie Poster

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

 
0
  #5
Apr 20th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 4
Reputation: Mike Vance is an unknown quantity at this point 
Solved Threads: 0
Mike Vance Mike Vance is offline Offline
Newbie Poster

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

 
0
  #6
Apr 28th, 2005
Originally Posted by sham
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 113
Reputation: Kegtapper is an unknown quantity at this point 
Solved Threads: 4
Kegtapper's Avatar
Kegtapper Kegtapper is offline Offline
Junior Poster

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

 
0
  #7
Oct 28th, 2005
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




Originally Posted by Mike Vance
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
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 2
Reputation: Chiquito is an unknown quantity at this point 
Solved Threads: 0
Chiquito Chiquito is offline Offline
Newbie Poster

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

 
0
  #8
Nov 15th, 2007
Originally Posted by sham View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC