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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Parameters from Access Union Query data

Status
Not open for further replies.

debbiepy

MIS
Jan 19, 2005
43
US
I have a union query in Access 2007 that joins three tables into one. Where the fields do not exist in one of the joined tables I created this in the Select statement:

"" AS [Product Name],

WHen Crystal Reports XI grabbed the query from Access it created a parameter that looks like this: []
and it prompts for input every time I run the report on refresh. I cannot delete this parameter because it shows that it is being used and it is not in my Select Expert.

Any ideas. I know it is creating it for the "" above. Becasue I had one that said "Dials" as [From Table] int he select statement and it created a paramater called [Dials]. I tested it by deleting that statement from the Select code and the paramater disappeared. however, I need the one above.
 
Why are you using brackets in the union statement? Why not just say:

"" as Product_Name

It seems that the brackets are being misinterpreted.

-LB
 
I get errors if I do not put [] around the field name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top