Avatar of RIAS
RIAS
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Vb.net to produce MSaccess report

Hello,
Any Guidline/Suggestion on just a simple system that will produce a printable report using MSaccess instead of sql.
Thanx in advance.

Cheers
Microsoft AccessVisual Basic.NET.NET Programming

Avatar of undefined
Last Comment
RIAS

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
AndyAinscow

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RIAS

ASKER
Hello Andy,
Thanks for the input.But ,my client wants a vb.net project to generate MSAccess report.  Any suggestions?

Cheers
AndyAinscow

>>my client wants a vb.net project to generate MSAccess report.

If it is to print an existing report the simple suggestion I made will work.  Use a VB.Net app to use Process.Start to launch access with command line parameters.

If it is to create a report you have an incredible amount of code to write, you'd need to open a report in development mode, create and add the data source, add controls to display info where required (header, footer, body, both report and grouping).....
AndyAinscow

ps.  The first only requires the free runtime access on the PC, the second requires the purchased full version of access on the PC.
Your help has saved me hundreds of hours of internet surfing.
fblack61
RIAS

ASKER
Yes,have purchased access on the pc.
AndyAinscow

and creating a report from nothing?
RIAS

ASKER
yup!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AndyAinscow

As I said, loads of work.  How much really depends on just what your client wants.
It is the sort of thing I'd do as a contract job.


you'd need to open a report in development mode, create and add the data source, add controls to display info where required (header, footer, body, both report and grouping).....
RIAS

ASKER
Ok.
Scott McDaniel (EE MVE )

It would be better to create the report in Access and then fill it through automation from your .NET program. Creating a report entirely from code in Access is doable, as Andy said, but it's a tremendous amount of work for no real benefit.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
RIAS

ASKER
Great!Any suggestions on how to add print function for the existing access report.
SOLUTION
Scott McDaniel (EE MVE )

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RIAS

ASKER
Cheers mates!!!!Will take it from here now..