Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is my select query asking for parameters 1

Status
Not open for further replies.

Danyul

Technical User
Jul 5, 2001
36
AU
Hi All

I have a query that should be a normal 'select' query but keeps askinig me for a parameter.

This is the query:

SELECT tbltransactionsbycatthismonth.key, (SELECT Sum([tbltransactionsbycatthismonth].[value]) AS Total
FROM [tbltransactionsbycatthismonth]
WHERE ((([tbltransactionsbycatthismonth].[key])<=[tbl_Alias].[key]));) AS Total
FROM tbltransactionsbycatthismonth AS tbl_Alias;

This is the parameter its asking for:

tbltransactionsbycatthismonth.key


the field 'key' is the autonumber field within the table.

Any ideas ?

Dan
 
Hi,

Try this:

SELECT tbl_Alias.key, (SELECT Sum([tbltransactionsbycatthismonth].[value]) AS Total
FROM [tbltransactionsbycatthismonth]
WHERE ((([tbltransactionsbycatthismonth].[key])<=[tbl_Alias].[key]));) AS Total
FROM tbltransactionsbycatthismonth AS tbl_Alias; Hope this is ok. If not, just let me know.

Nick (Everton Rool OK!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top