Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > PC based Database Applications > Microsoft Excel > User Defined Functions and Import Data Wizard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-08, 09:44
blue_bottle_boy blue_bottle_boy is offline
Registered User
 
Join Date: Mar 2008
Location: Usually at home
Posts: 20
User Defined Functions and Import Data Wizard

Hi

I have set up a User Defined Function (UDF) in MS Access Module that is called in a MS Access Query. I tested the query in MS Access and it works fine.

In MS Excel, I tried to import data from the query but the Import Data Wizard doesn’t locate the particular query. However it can see all other queries which do not contain UDFs. Why? Is there a fix that will allow me to import data from an MS Access query than contains a UDF?
Reply With Quote
  #2 (permalink)  
Old 07-01-08, 02:07
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Fort Polk, LA
Posts: 500
In a nutshell, it's not an Access query, it's a JET query. When you're running Access, queries can call back into VBA. But when you're going through ODBC or ADO, the JET engine doesn't have the whole VBA model to draw on because it's simply not running.

Your best bet is to export from Access to Excel.
Reply With Quote
  #3 (permalink)  
Old 07-02-08, 06:39
blue_bottle_boy blue_bottle_boy is offline
Registered User
 
Join Date: Mar 2008
Location: Usually at home
Posts: 20
Thanks for the tip.

I thought it might be something like that.

Rather than export the query. I might try and and rewrite the query. I just need to work out from an array of dates which ones are the end of month.


Regards

BBB
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On