Solved

"Can't bind name error on Access reports"

Posted on 2000-04-13
2
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

752 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