Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Bar Chart in Access 3

Status
Not open for further replies.

Vika

Programmer
Jul 31, 2000
29
US
I need to create bar chart in access to show in report, based on critiria entered on the form.
 
OK, this is the basics.

Create an unbound form, and add the textboxes you need to collect the criteria. Save the form, call it frmCriteria.

Create a query that contains the fields you want in your chart. In the criteria line of the query, enter [Forms]![frmCriteria]![YourTextBoxName] for each of the fields.


Now create a New Report. Choose Chart Wizard and the query you just created above. The Chart Wizard will walk you through building the chart.

This should get you started. Let us know if you need more.



Kathryn


 
That would've be way to easy! I don't have the wizard installed, so I would need to know how to create it in code, without using any wizards. Did anybody ever created charts without a wizard?
 
Vika, I'm not sure what you mean by not having the chart wizard installed; I thought it was part of a standard Access install.

Anyway, if you have gotten your query defined; Create a new Report in Design View. From the menu choose Insert-> Chart. Click and drag a rectangular chart on your report.

If you don't have the Wizard, you should just see a generic report. Right click on the report. You should see Chart Object-> Edit. This will kick you into Microsoft Graph. If you right click there, you should see options to help you to set up your graph.

Hope this helps.

Kathryn


 
Hey hey,

I'm building reports using the chart wizard within MS Access 97.

The report is based on two date fields and returns the information that falls between the 2 dates.

The criteria in my qry is as follows:
Between [Forms]![frmNCRReports]![begindate] And [Forms]![frmNCRReports]![enddate]

Now the qry runs just fine, so i know it's not a syntax problem, but when i run the report i get the following errormsg and the report opens up blank.:

The Microsoft Database engine does not recognize 'Between [Forms]![frmNCRReports]![begindate]' as a valid field name or expression.

Any help would be apreciated, Thank you
 
I'm not sure, but you may want to define your criteria explicitly in the query.
In the query design view, choose Querye->Parameters from the menu.
then put
[Forms]![frmNCRReports]![begindate]
[Forms]![frmNCRReports]![enddate]
in the first 2 rows and change the Datatype to Date/Time.

This may help, though I'm not really sure. If it doesn't, you may need to build the query in code. Ask if you need help with that.

B
----------------------------------
Ben O'Hara
bo104@westyorkshire.pnn.police.uk
----------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top