473,412 Members | 2,081 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,412 software developers and data experts.

jet database engine does not recognize...

38
I have a query that works fine when it's run on its own but when it's included within another query it breaks the other query and I get the following error:

The jet database engine does not recognize 'tblComments.refSAR_ID' as a valid field name or expression

Can anyone tell me what am I doing wrong here?


This is the query in question:
Expand|Select|Wrap|Line Numbers
  1. SELECT tblBalance.SAR_ID, tblComments.Comment
  2. FROM tblBalance LEFT JOIN tblComments ON tblBalance.SAR_ID = tblComments.refSAR_ID
  3. WHERE (((tblComments.CDate)=(SELECT Max(X.CDate) FROM tblComments As X WHERE X.refSAR_ID = tblComments.refSAR_ID) Or (tblComments.CDate) Is Null));
  4.  

This is the code for the the other query:
Expand|Select|Wrap|Line Numbers
  1. SELECT tblBalance.SAR_ID, qryConst.Team, qryConst.[Team Code]
  2. FROM qryConst, tblBalance INNER JOIN qryComm ON tblBalance.SAR_ID = qryComm.SAR_ID;
  3.  
qryConst is a crosstab query and from what I can tell, I'm getting the error whenever qryConst and qryComm (from my original post) are together.

and here's the code for the crosstab query qryConst:
Expand|Select|Wrap|Line Numbers
  1. TRANSFORM First(xtblConst.Value) AS FirstOfValue
  2. SELECT xtblConst.order
  3. FROM xtblConst
  4. GROUP BY xtblConst.order
  5. PIVOT xtblConst.Title;
  6.  
May 28 '10 #1
0 1228

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: PeterH | last post by:
I have an application written in VB.Net that opens an Access database (ie a Microsoft Jet 4 database mdb file). It does not use Access forms or reports, so there is no need for users to have...
17
by: MLH | last post by:
The Microsoft Jt database engine can not find tblJobSites, error #3078. That's what I get when executing this code... Private Sub Command1_Click() Dim MyWorkspace As Workspace Set MyWorkspace...
3
by: Neal | last post by:
Hi All I am trying to connect from ASP.Net app to an Access Db. If i don't specify a userid an pwd.. I get this error The Microsoft Jet database engine cannot open the file 'C:\Documents and...
1
by: Morten Wennevik | last post by:
I'm transferring an Excel file from a client computer to a web-page on a server, then trying to open the file on the server causes this exception message to occur. The Microsoft Jet database...
1
by: Jean-Marc Blaise | last post by:
Hi, I find much regrettable that Database Engine Tuning Advisor be not part of MS-Express Edition ... A server without such help is not a server. Besides, you've got the tutorials, but not the...
1
by: Ely | last post by:
Hi I create an expression in a Macro Argument and adding a Where Condition that matches the control name of the form with the report. It was working fin, but I made a change in the report that...
24
by: sonos | last post by:
Hi, I am working on a program to archive data to disk. At what point is it best to use a relational database like MySQL as the backend instead of a C program alone? Thanks to any and all...
11
by: Tempalli | last post by:
I am using M.S.Access as backend database and able to add records from Excel but not able to Edit & Update the specific record from M.s Access with reference to cell value given in excel. Kinldy help...
2
by: =?Utf-8?B?c25henp5?= | last post by:
I have created an web application using Visual Studio 2008. The application works OK in Debug. However it does not work after publish. The following message appers "The Microsoft Jet database...
1
by: Waitatari | last post by:
Access 07 in design view of a newly created table I get the above error, I need to enter a unit price which is then charged 10% tax to get the total for both what am I doing wrong? Thank you.
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.