Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2005, 04:52 PM
Member
 
Join Date: May 2003
Posts: 35
Default MS Access stored function

I created a function and saved it as a module in MS Access.

When I run the function in MS Access I get the expected result but when I run it in SWFKit I get a function undefined error.

ex: "SELECT getGUID() as myID;"

But, if I use a built-in MS Access function such as Now() in SWFKit then I get the date as expected.

ex: "SELECT Now() as myDate;"

How can I get my custom function to work from SWFKit?
Reply With Quote
  #2 (permalink)  
Old 12-14-2005, 12:07 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:MS Access stored function

http://www.functionx.com/vbaccess/Lesson23b.htm
Reply With Quote
  #3 (permalink)  
Old 12-14-2005, 02:12 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:MS Access stored function

The link you gave me show how to create procedures from ADO to store regulare SQL statements but not how to store a VB script.

Basicaly, I have a piece of VB code in a module that generates a GUID. It's working find when used within Access but not when called from ADO.

How could I store that VB code and reuse it from ADO?
Reply With Quote
  #4 (permalink)  
Old 12-17-2005, 11:04 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:MS Access stored function

No, ADO cannot call vb code.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
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



All times are GMT. The time now is 02:08 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.