Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Reporting to use
Message
 
To
05/07/2000 21:21:44
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00388225
Message ID:
00388777
Views:
11
>>>Which report tool is best to be used in VB6 and Access 2000
>>>database? Thanks.
>>
>>I prefer Active Reports (www.datadynamics.com). More code to write but a lot more flexibility!
>>
>>Access reports are not to bad too.
>>
>>One thing for sure, forget the DataReport that comes with VB6!
>
>If I were to use Access 2000 reporting feature, how can I call from
>my VB6 application? Some sample example would be appreciated. Thanks.

Notice that you need to install Access to every PC with that solution (meaning more licences to buy).
Const dbPathName = "c:\database.mdb" 
Const strPassword = "PASSWORD" 
Dim Acc As Object, db As Object 

Set Acc = CreateObject("Access.Application") 
Set db = Acc.Application.DBEngine.Workspaces(0).OpenDatabase(dbPathName, 0, False, ";pwd=" & strPassword) 
Acc.OpenCurrentDatabase dbPathName, False 
Set db = Nothing 
Acc.DoCmd.OpenReport "ReportName", acPreview 
Set Acc = Nothing
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform