ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Executing queries stored in database in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/60536-executing-queries-stored-database-excel.html)

John B

Executing queries stored in database in Excel
 
Hi,

I have a database with a query like:

Select MonthJoined, GetUserName(UserID), Title, DoB
from UserTable

GetUserName is a user defined function that retrieves user name based on
UserID

I want to use this query in excel as data source
via pivot table -- Getdata -- MS Query

but MS Query could not execute GetUserName() function.

Is there any way around this?

I would prefer not to create another query in Excel - maintain all queries
in Access rather than Excel.

JB


All times are GMT +1. The time now is 06:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com