first guess would be one of those in square brackets
Main Topics
Browse All TopicsHere is the SQL, I get the "Enter Parameter Value" popups for the Sum of Sum of month requests and the sum actuals line. Data entered into the box is not used. Points go to whomever can help me figure out why and remove them, extra points can be giving if this can be slimmed down a bit (which I assume it can, this was quick and dirty and I havent had time to clean it up yet)
SELECT DISTINCTROW tbl_cost_piw_title_type.[W
FROM (qry_CMPM_enhancing_FTE LEFT JOIN tbl_cost_group ON qry_CMPM_enhancing_FTE.[Co
GROUP BY tbl_cost_piw_title_type.[W
ORDER BY tbl_cost_piw_title_type.[W
Thanks EE!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi IUfoltzie,
It will tell you to do that if the query has a field that does not exist. As far as cleaning up your code, good luck with that. Maybe try breaking it down and storing it in more different queries. It is possible that Access is just getting confused.
--------------------------
Frank Lindiakos
Application Developer
WeberSystems Inc.
frank@webersystems.com
fotios@csh.rit.edu
So, following with my post before try this (I removed the grouped fields in the group clause):
SELECT DISTINCTROW tbl_cost_piw_title_type.[W
FROM (qry_CMPM_enhancing_FTE LEFT JOIN tbl_cost_group ON qry_CMPM_enhancing_FTE.[Co
GROUP BY tbl_cost_piw_title_type.[W
ORDER BY tbl_cost_piw_title_type.[W
I've corrected my last post:
open data db shared
use db.dbc alias mydbc shared again
select ObjectName from mydbc ;
where upper(ObjectType)="VIEW" ;
and upper(ObjectName) not in ;
(select upper(fldTable) from mytable) ;
and upper(ObjectName) not in ;
(select upper(rtrim(fldTable))+"_A
into cursor mycursor
select mycursor
copy to myxls xl5
close all
I cleaned up the query to this (and I might clean it up more)
SELECT DISTINCTROW tbl_cost_piw_title_type.[W
FROM tbl_cost_piw_title_type LEFT JOIN qry_CMPM_groupRC ON tbl_cost_piw_title_type.[C
GROUP BY tbl_cost_piw_title_type.[W
ORDER BY tbl_cost_piw_title_type.[W
This doesnt have the sum from Jan-May included yet... I am curious the thread thinks a another query on top is best...
Also could someone explain to me the NZ function as it relates to access?
Nz Function
You can use the Nz function to return zero, a zero-length string (" "), or another specified value when a Variant is Null. For example, you can use this function to convert a Null value to another value and prevent it from propagating through an expression.
Nz(variant, [valueifnull])
The Nz function has the following arguments.
Argument Description
variant A variable of data type Variant.
valueifnull Optional (unless used in a query). A Variant that supplies a value to be returned if the variant argument is Null. This argument enables you to return a value other than zero or a zero-length string.
Note If you use the Nz function in an expression in a query without using the valueifnull argument, the results will be a zero-length string in the fields that contain null values.
If the value of the variant argument is Null, the Nz function returns the number zero or a zero-length string (always returns a zero-length string when used in a query expression), depending on whether the context indicates the value should be a number or a string. If the optional valueifnull argument is included, then the Nz function will return the value specified by that argument if the variant argument is Null. When used in a query expression, the NZ function should always include the valueifnull argument,
If the value of variant isn't Null, then the Nz function returns the value of variant.
Remarks
The Nz function is useful for expressions that may include Null values. To force an expression to evaluate to a non-Null value even when it contains a Null value, use the Nz function to return zero, a zero-length string, or a custom return value.
For example, the expression 2 + varX will always return a Null value when the Variant varX is Null. However, 2 + Nz(varX) returns 2.
You can often use the Nz function as an alternative to the IIf function. For example, in the following code, two expressions including the IIf function are necessary to return the desired result. The first expression including the IIf function is used to check the value of a variable and convert it to zero if it is Null.
varTemp = IIf(IsNull(varFreight), 0, varFreight)
varResult = IIf(varTemp > 50, "High", "Low")
In the next example, the Nz function provides the same functionality as the first expression, and the desired result is achieved in one step rather than two.
varResult = IIf(Nz(varFreight) > 50, "High", "Low")
If you supply a value for the optional argument valueifnull, that value will be returned when variant is Null. By including this optional argument, you may be able to avoid the use of an expression containing the IIf function. For example, the following expression uses the IIf function to return a string if the value of varFreight is Null.
varResult = IIf(IsNull(varFreight), "No Freight Charge", varFreight)
In the next example, the optional argument supplied to the Nz function provides the string to be returned if varFreight is Null.
varResult = Nz(varFreight, "No Freight Charge")
Example
The following example evaluates a control on a form and returns one of two strings based on the control's value. If the value of the control is Null, the procedure uses the Nz function to convert a Null value to a zero-length string.
Public Sub CheckValue()
Dim frm As Form
Dim ctl As Control
Dim varResult As Variant
' Return Form object variable pointing to Orders form.
Set frm = Forms!Orders
' Return Control object variable pointing to ShipRegion.
Set ctl = frm!ShipRegion
' Choose result based on value of control.
varResult = IIf(Nz(ctl.Value) = vbNullString, _
"No value.", "Value is " & ctl.Value & ".")
' Display result.
MsgBox varResult, vbExclamation
End Sub
and thats the query ones I build a third one....
SELECT qry_CMPM_actual_sumCG.[Wor
FROM qry_CMPM_actual_sumCG;
It works clean enough.. I do get blanks where there isnt any data yet... I think I could change the default in the database to Zero for those fields. I just hope it cant be overwriten when I past the new hours data into the table.
Business Accounts
Answer for Membership
by: rockiroadsPosted on 2004-06-24 at 09:13:47ID: 11390554
Enter Parameter Value is what u get in parameter queries i.e. you are prompting for a value
if not expected it means you got a field in your query which does not exist
double check all fields used in your query, thats in select, where clause etc