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

Paramter in query

I've made a query which works fine. My problem is that Access ask for a
paramter value when I run the query, and I can't understand why.

The query:
SELECT Ordre.ID, Ordre.OpprettetDato, Sum(ViewOrdrelinjer.Subtotal) AS
Total, OrdreStatus.Navn AS Status, Kunder.Firma
FROM OrdreStatus INNER JOIN (Kunder INNER JOIN (Ordre INNER JOIN
ViewOrdrelinjer ON Ordre.ID = ViewOrdrelinjer.OrdreID) ON Kunder.ID =
Ordre.KundeID) ON OrdreStatus.ID = Ordre.StatusID
GROUP BY Ordre.ID, Ordre.OpprettetDato, Kunder.Firma, OrdreStatus.Navn,
Ordre.KundeID, Ordre.StatusID, OrdreStatuser.Navn;

The paramter that I have to type:
OrdreStatuser.Navn

What can I do to make Access NOT ask for a parameter value?
--
Eirik Eldorsen
Nov 13 '05 #1
1 1272
I found out what the problem was:
In the group by I used: OrdreStatuser.Navn, should have been
OrdreStatus.Navn

"Eirik Eldorsen" <ku*******@hotmail.com> skrev i melding
news:d8**********@services.kq.no...
I've made a query which works fine. My problem is that Access ask for a
paramter value when I run the query, and I can't understand why.

The query:
SELECT Ordre.ID, Ordre.OpprettetDato, Sum(ViewOrdrelinjer.Subtotal) AS
Total, OrdreStatus.Navn AS Status, Kunder.Firma
FROM OrdreStatus INNER JOIN (Kunder INNER JOIN (Ordre INNER JOIN
ViewOrdrelinjer ON Ordre.ID = ViewOrdrelinjer.OrdreID) ON Kunder.ID =
Ordre.KundeID) ON OrdreStatus.ID = Ordre.StatusID
GROUP BY Ordre.ID, Ordre.OpprettetDato, Kunder.Firma, OrdreStatus.Navn,
Ordre.KundeID, Ordre.StatusID, OrdreStatuser.Navn;

The paramter that I have to type:
OrdreStatuser.Navn

What can I do to make Access NOT ask for a parameter value?
--
Eirik Eldorsen

Nov 13 '05 #2

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

Similar topics

2
by: jaysonsch | last post by:
Hello! I am having some problems with a database query that I am trying to do. I am trying to develop a way to search a database for an entry and then edit the existing values. Upon submit, the...
29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
5
by: tshad | last post by:
I can't seem to find where to reset the parameter list. Dim objCmd as New SqlCommand(CommandText,objConn) with objCmd.Parameters .Add("@StateCode",SqlDbType.Char,2).value = ByState.SelectedValue...
1
by: Islamegy® | last post by:
When i call stored procedure which have an output paramter, t'm unable to get the value How could i fix it?? here is the method.... ---------------------------- userid = 0; SqlParameter...
5
by: Miro | last post by:
This qustion is probably for people who have created large apps with subs / or functions that have a lot of parameters and used in a lot of places in ur whole app. ( lets say its ur own library...
2
by: Garx | last post by:
Hi Guys, This is my first post so bear with me :) I am running Access 2003 and am still feeling my way around it. I have a form (FORM_IDL) that uses a combobox (cboIDA) which uses a query as...
3
by: araman | last post by:
i have a simple paramter query. one of the fields is called vendors. the criteria is "Like is there a way to construct the query in which "like " but if it is left blank then all record are...
3
by: DivyaV | last post by:
Hi All, In Parameter form of Oracle Report Builder 6i, suppose there are two input fields (each showing drop down list) input1 & input2. Can we write a query or rather link these two inputs fields...
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
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...
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
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
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.