Excel link to Access query not bringing back any data
I have linked an Excel spreadsheet to an Access query, and it does not bring back any data. See attached example. I have tried to bring the data in as a table and as a pivot table, but with no luck. Running the query in Access brings in multiple rows.
I am using Access 2016 and Excel 2016. Any ideas on what is going on here? Thanks. - Tom
can you check if your Data Source=S:\Acctg\Farrar\FinancialAnalysis-WIP.accdb is correct path and file?
Tom Farrar
ASKER
Yes, it is. I can actually pick the query from the linking process, but other than headings from the query, no data.
Flora Edwards
can you check if your workbook data connections is enabled? To connect to data when you open a workbook, you must enable data connections by using the Trust Center bar, or by putting the workbook in a trusted location.
For anyone interested: It appears there is an Access option for changing ANSI standard (see below) though it may cause more problems than solutions.
From Internet:
"Unfortunately, Nick, the “%” and / or “*” can both be used as wild card functionality. Although they may behave differently based upon the version of ANSI you are using. I don’t believe ANSI was created by Microsoft and I think the standard was made by the American National Standards Institute. Applications can then decide which standard they want to use. Some applications make use of ANSI 89 and some ANSI 92. From what I can see Excel by default makes use of the ANSI 92 standard, similar to Microsoft SQL Server. Access databases by default makes use of a different version of ANSI, hence the difference in wild card behavior. With that being said, Access does give you the option to make use of ANSI 92 in case you need to integrate with other applications that also make use of it.
In Access 2010, this option can be changed by doing the following:
File Menu -> Access Options -> Object Designers -> Check options below SQL Server Compatible Syntax (ANSI 92)."