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

Parameter Query Problems

I am trying to set a perameter for my query but keep getting an error: The
Microsoft Jet database engine does not reconize '[Enter Customer Code]' as a
valid field name or expression. The only difference from other queries with
the same parameter in my database is that this query is a crosstab.

How do I fix this problem?

Thanks,
Greg
Nov 12 '05 #1
4 3912
On Thu, 16 Oct 2003 01:56:50 GMT, "Greg" <gk******@itlan.net> wrote:

I just added a parameter to a crosstab query in the Northwind sample
database. Works fine.
You probably have a typo.

-Tom.
I am trying to set a perameter for my query but keep getting an error: The
Microsoft Jet database engine does not reconize '[Enter Customer Code]' as a
valid field name or expression. The only difference from other queries with
the same parameter in my database is that this query is a crosstab.

How do I fix this problem?

Thanks,
Greg


Nov 12 '05 #2
Tom van Stiphout <to*****@no.spam.cox.net> wrote in message news:<nf********************************@4ax.com>. ..
On Thu, 16 Oct 2003 01:56:50 GMT, "Greg" <gk******@itlan.net> wrote:

I am trying to set a perameter for my query but keep getting an error: The
Microsoft Jet database engine does not reconize '[Enter Customer Code]' as a
valid field name or expression. The only difference from other queries with
the same parameter in my database is that this query is a crosstab.

How do I fix this problem?

Thanks,
Greg


You cannot add a parameter to a crosstab query. Solution: Use the
Crosstab query as a source of your inquiry, then add your parameter.
Nov 12 '05 #3
I have tried to create the parameter in another query that pulls from the
crosstab but ran into the same problem. Do I need to do the create a query
1st and use that query for the crosstab to run from?

Thanks for the help!!

Greg

"Greg" <gk******@itlan.net> wrote in message
news:CV*****************@nwrdny03.gnilink.net...
I am trying to set a perameter for my query but keep getting an error: The
Microsoft Jet database engine does not reconize '[Enter Customer Code]' as a valid field name or expression. The only difference from other queries with the same parameter in my database is that this query is a crosstab.

How do I fix this problem?

Thanks,
Greg

Nov 12 '05 #4
On 16 Oct 2003 04:34:49 -0700, pj**@erols.com (pjac) wrote:

I disagree. I created this in the Northwind sample application:
TRANSFORM Sum(CCur([Order
Details].[UnitPrice]*[Quantity]*(1-[Discount])/100)*100) AS
ProductAmount
SELECT Products.ProductName, Orders.CustomerID, Year([OrderDate]) AS
OrderYear
FROM Products INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON Products.ProductID =
[Order Details].ProductID
WHERE (((Orders.CustomerID)=[Give Product ID]) AND ((Orders.OrderDate)
Between #1/1/1995# And #12/31/1995#))
GROUP BY Products.ProductName, Orders.CustomerID, Year([OrderDate])
PIVOT "Qtr " & DatePart("q",[OrderDate],1,0) In ("Qtr 1","Qtr 2","Qtr
3","Qtr 4");

-Tom.

Tom van Stiphout <to*****@no.spam.cox.net> wrote in message news:<nf********************************@4ax.com>. ..
On Thu, 16 Oct 2003 01:56:50 GMT, "Greg" <gk******@itlan.net> wrote:

>I am trying to set a perameter for my query but keep getting an error: The
>Microsoft Jet database engine does not reconize '[Enter Customer Code]' as a
>valid field name or expression. The only difference from other queries with
>the same parameter in my database is that this query is a crosstab.
>
>How do I fix this problem?
>
>Thanks,
>Greg
>


You cannot add a parameter to a crosstab query. Solution: Use the
Crosstab query as a source of your inquiry, then add your parameter.


Nov 12 '05 #5

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

Similar topics

13
by: | last post by:
From ASP I run a query using MIN(some_field/parameter) Now I need to pass this parameter to the query from ASP code How do I do that? Syntax like MIN( / ) does not work
3
by: cassandra.flowers | last post by:
Hi, I was wondering if it is possible (Using access) to have a query parameter as a drop down box rather than a text box? e.g. typing as criteria for a query produces a box with a text box...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
2
by: Julie Wardlow | last post by:
Help! I am calculating a future date using the DateAdd function in a query (the calculation also involves an IIf statement), and have managed to get this formula to produce the required result....
0
by: silesius | last post by:
I've been using VS.NET 2003 to develop a webapplication using C#. Today I exported the application to another webserver I begun experiencing problems. It's a simple application that retrieves...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
0
by: Billie Boy | last post by:
Hi to all. I’m new here and am coming to you from Melbourne Australia. So a big HELLO 2 ALL. Now I am encountering an annoying problem in the SQL builder of the copy of VB.6 that I am using at...
4
by: GladGad | last post by:
I am not a real well versed query writer and therefore am having some problems figuring out how to write a parameter query where I want to input a partial name. I have tried a few different things,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.