473,416 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

#error in report w/linked tables

Jer
Using Access 2003 w/Windows XP.
I have a database originally created with the tables internal. I split
the database into a front-end/back-end with linked tables. Now when I
open one of the reports, I get #error in some of the fields. I created
two new databases from scratch and imported the front-end objects into
one database and imported the tables into the other and re-linked them.
I still get the error.
The report is opened from a form, using docmd.openreport specifying a
where clause. If I open the report directly, without the where clause,
there are no errors.
If I import the tables back into the front end, then the errors go
away.
Any ideas?
Thanks,
Jerry

Dec 13 '05 #1
3 2050
In the DoCmd.OpenReport statement, check your WHERE clause to make sure
it appropriately references your linked tables. Also make sure the
fields referenced by your WHERE clause still exist in the query that
your report has for its Record Source property. If these are all okay,
post the names of your linked tables, the names of your linked tables
and the SQL from your report's Record Source query.

Dec 13 '05 #2
Jer
The WHERE clause looks correct. The problem is actually in a
subreport. The report has 15 subreports with a MASTER link control of
CPID and child link field of CP_ID. All of the queries on the
subreports contain the field CP_ID. All of the subreports display data
correctly except one. I get an #error on the main report because I'm
try to pull a total from the subreport. I use the following code to
make sure the subreport has data
IIf(LaborGA.Report.HasData=-1,CLng(LaborGA!totalLaborGA),0)
When I open the main report in design mode the CPID control indicates
an error that CP_ID is not in the field list, but it is. When I
reselect it the control error goes away. When I open the report again,
it is missing data still. I go into design mode and the CPID control
is indicating the same missing field error.

I know this all sounds bizarre. But that's why I'm here.

Dec 14 '05 #3
I'm not entirely sure I understood everything there...could you clarify
something? It may be just a typo or my misunderstanding, but when you
view the report in Design view, the CPID control says "#ERROR" in it?

Regardless of that, have you checked to make sure the subreport has a
field called CP_ID? And that the query underlying that subreport
selects a field called CP_ID? Usually when you get #ERROR it indicates
a problem with syntax - usually, in my experience, it's because of a
misspelled field name or a slightly off formula.

Dec 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
1
by: news | last post by:
I have an Access database of two tables. One table is a vehicle inventory table and the other is a vehicle maintenance table. There is one field common between both tables and these fields are...
5
by: Sami | last post by:
I can create queries and reports based on info from one table. How do I create one using information from multiple tables. What do I need to make sure the information from one table will be...
2
by: me321701 | last post by:
I have an Access 2003 MDE with a SQL Server 2000 back-end using ODBC linked tables. The MDE is shared among approximately 20 users. This is the environment; I don't have the ability to change it...
0
by: EJO | last post by:
Thanks everyone! My workgroup is in a mixed enviroment for using an Access 2k mde as the front end of a sql server 2000 which is running on the same machine that some of my users access using...
4
by: Jana | last post by:
Hi! I have an Access 97 report based on tables linked to an SQL back end. The report has 5 subreports in it (unfortunately unavoidable due to the nature of the report) and performance is quite...
0
by: saintor1 | last post by:
Access 97 This error looks to me as secondary. In fact, it bugs when the opening report tries to close a form. If I try to open the report directly, I have a different message, stating that...
3
by: peterkennett | last post by:
I have three tables, all linked. Table 1 "job" has an autonumber ID field. Table 2 "tasks" has a field that is linked to Table 3 "staff" has a field that also links to The purpose is to...
3
by: patriciashoe | last post by:
I have a database that consists of several tables all linked by a school id number.The other tables hold data related to the schools. Another field common to all tables is a date field. I could use...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.