473,385 Members | 1,769 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,385 software developers and data experts.

Error: Database engine does not recognize... as a valid field name or expression

Question from a Novice:

I have a Query which is based on a Crosstab Query. One of the fields in the Query is "Client". I can "hardcode" a Criteria for the "Client" field and the Query works fine. For example: Left([Client],1)="A", or "AMG" both return all the rows where Client = "AMG".

Obviously, I would prefer to use a variable for the Criteria such as [TempVars]![ClientName]. But whenever I try that (when a Crosstab Query is the source of the Query), I get following error message:

"The Microsoft Access database engine does not recognize '[TempVars]![ClientName]' as a valid field name or expression.

Simple queries based on a table or based another another simple query have no errors when I use a variable for the Client field Criteria.

Any suggestions for getting my Query to handle a variable for the Client field criteria - when my Query is based on a Crosstab Query?

I'm stuck!
Mar 27 '12 #1
1 4068
NeoPa
32,556 Expert Mod 16PB
I'm confused by what you mean by a variable Paul. [TempVars]![ClientName] is none such. It's a reference to a field.

I'm very inexperienced with Crosstabs myself, but it would seem sensible to post the SQL anyway and possibly try to explain what you want again with reference to what's there.
Mar 27 '12 #2

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

Similar topics

7
by: aa | last post by:
I have beem recommended to use the Nz() function in the ORDER BY part of an Access2000 stored query. The query runs correcly from within Access2000 Yet when ran from ASP, it causes an error: ...
3
by: sbowman | last post by:
I'm trying to get a query in access to give me a parsed string if the field contents are not null and the value from another field if the field contents are null. I have the following in the...
0
by: NerdRunner | last post by:
I have created a web service that creates an oledb connection to a set of lotus approach dbf files. One field names in the lotus approach table is # of Partitions of Room When I connect to...
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...
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...
7
by: Ares6881 | last post by:
This error has been driving me a little bit nuts, I have 2 reports going off the same query, the query pulls in data from a crosstab query. One of the reports is working just fine, but whenever I...
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.
7
by: DanicaDear | last post by:
I've tried to put together some code for a form. This code actually compiles (and I've very proud of that!) but it gives me this error when running and points to line 41 in the code below. "Run-time...
1
by: santhanalakshmi | last post by:
Hi, I am trying to install MS Server 2008 on my XP Machine.At the final steps of my installation,i am facing an error "Database Engine gets Failed".I can't able to fix my error.Please help...
2
by: Mr Key | last post by:
Hi all, I have a parameter query running from myform named MainForm,(on AC2010) After a selection on the Combox from MainForm I wish I could always open the data according to parametersQuery...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.