Microsoft query question

dracer

Board Regular
Joined
Jul 30, 2014
Messages
76
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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