add item select statement
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Add item to a select statement

Add item to a select statement

resolvedResolved · Medium Priority · Version 2007

replyReply Fri 25 Feb 2011, 13:52Delegate Tracey said...

Tracey has attended:
Excel VBA Intro Intermediate course

Add item to a select statement

I have inherited some code and added an item to every instance of a select statement that I can see. I'm getting an error that the two sides of a union query aren't equal (there's a union all around the select statements), but can't see what I'm missing.

For upcoming training course dates see: Pricing & availability

replyReply Fri 4 Mar 2011, 10:26Trainer Stephen said...

RE: Add item to a select statement

Hi Tracey

Thanks for the question.

A union query in Jet SQL will only work if the two tables in the union query have the same fields with identical names. That error suggests that you are trying to unite two tables that have different fields.
So as a first check, I'd look to see if that is the case. If so, then you will need to address this. If this is not the case then please get back to me and I can explore further options

Regards

Stephen

Thu 10 Mar 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel computer training and other Microsoft training courses.

Excel tip:

Sorting data stored in rows

Primarily Excel is set up to sort data that is stored in columns rather than rows.

It is possible to get Excel to sort data stored in rows however.

Click in the row you want to sort, or select the cells in the rows you wish to sort.

Go to Data - Sort, then go to the Options button in the bottom left corner of the Sort dialogue box.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard