Microsoft query question

dracer

Board Regular
Joined
Jul 30, 2014
Messages
75
Office Version
  1. 365
  2. 2019
Hi there. I was wondering if someone can help with this Microsoft Query issue. I have a staff that's set up and can connect to the server and to the reports and when we try to run a report on his computer he gets the below message. My computer has no problem running the report. Does anyone have any suggestions on this?

"AN object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as '"' or are not allowed. Change the alias to a valid name
Unclosed quotation mark after the character string ".
Incorrect syntax near ".
Statements could not be prepared"
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
please check the SQL syntax

and check the field names - for characters like ' and ` and "
if found can you remove & test without them. if that is OK try re-introducing them with [the field name enclosed in brackets like this]

and check that the field names in the SQL exactly match the actual field names in the table
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top