Hello Everyone
I am new on the Mr Excel forum. Could someone please assist me with the below SQL RIGHT OUTER JOIN statement included in an excel VBA script.
MySql = "SELECT Employees.[First Name], employees.[Last Name], employees.[Job Title] " & _
"orders.[Ship City], orders.[Ship Country/Region] " & _
"orders.[Order ID] , orders.[Ship Name], orders.Taxes " & _
"FROM Employees " & _
"RIGHT OUTER JOIN Orders " & _
"ON Employees.ID = orders.[Employee ID] " & _
"order by orders.[Ship Address];"
When i run the program, i am getting the below error message box
-- removed inline image ---
Could someone please shed a light on the issue? How do i go about resolving the issue?
I am grateful in advance for your assistance
I am new on the Mr Excel forum. Could someone please assist me with the below SQL RIGHT OUTER JOIN statement included in an excel VBA script.
MySql = "SELECT Employees.[First Name], employees.[Last Name], employees.[Job Title] " & _
"orders.[Ship City], orders.[Ship Country/Region] " & _
"orders.[Order ID] , orders.[Ship Name], orders.Taxes " & _
"FROM Employees " & _
"RIGHT OUTER JOIN Orders " & _
"ON Employees.ID = orders.[Employee ID] " & _
"order by orders.[Ship Address];"
When i run the program, i am getting the below error message box
-- removed inline image ---
Could someone please shed a light on the issue? How do i go about resolving the issue?
I am grateful in advance for your assistance