If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
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, 08: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, 01:07
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
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, 05: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

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