Solved

"Can't bind name error on Access reports"

Posted on 2000-04-13
2
199 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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