Union Query SQL

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Union Query SQL

Post by matthewR »

I have this Union Query and I am trying to add two additional fields. I added the fields to both queries and added the fields to the Union SQL but It is not working (see attached). For the fields I am trying to add, it comes up "Enter parameter Value". What am I doing wrong?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78625
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Union Query SQL

Post by HansV »

Are you sure that CSG_V2 is a field in both District_HealthVision_WO_Prompt_Compare_Current and in District_HelathVision_Compare_July2 (note that it's HelathVision and not HealthVision in your screenshot!) and that it's spelled exactly like that?
Best wishes,
Hans

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Re: Union Query SQL

Post by matthewR »

Once I looked at your reply, I realized what I have been doing. I was using the wrong query for "District_HealthVision_Wo_Prompt_Compare_Current". It is time for me to go home. Thank you very much.

User avatar
HansV
Administrator
Posts: 78625
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Union Query SQL

Post by HansV »

Have a good weekend!
Best wishes,
Hans