473,287 Members | 1,564 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,287 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 2043
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.