Solved

"Can't bind name error on Access reports"

Posted on 2000-04-13
2
198 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
ID: 2712311
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
ID: 2712947
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
running an update statement after a msgbox (MS Access) 3 31
ms/access hyperlink/ftp 7 39
Close Print Preview button not active 12 36
Alter an update query which rounds 7 33
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

864 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

24 Experts available now in Live!

Get 1:1 Help Now