Solved

"Can't bind name error on Access reports"

Posted on 2000-04-13
2
197 Views
Last Modified: 2010-07-27
I have a number of "product"-based reports that are reliant on crosstab queries creating columns that have data in them for a month end report.  Some "products" have no data on certain months.  The report falls over with error "can't bind name" when the cross tab query generates no data for the product in question(other products do contain data and should be printed).  How I make the report generic so that when a product has no data the report will still work?
0
Comment
Question by:rafx
2 Comments
 
LVL 3

Expert Comment

by:MikeRenz
Comment Utility
in your query check your joins.  Make sure the fields you have joined between the 'product' are inner joins, and not left or right joins.
0
 

Accepted Solution

by:
GOLLEM earned 100 total points
Comment Utility
rafx->

I think the problem is in the null-values. Acces can't make heads or tails of them of course.

you could simply use dummy values. Make an update-query that replaces the nulls with zeros, this way your numeric values can be added up.
for sting values this is a bit harder, but I'm sure you can make a work-around for that too.

Idea: if you use a fixed value that indicates "no value' than you can do a SELECT.... WHERE  field = NOT "No Value" in your report

You can automate the update query by calling it in the OnTimer event of your main form using an if-routine bound to when the date is for example the first of the month.

Hope this fixes your problem,

                                        Michiel
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now