473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

calling my own VB code using ODBC ?

HI all,

is there a way to call my own VB Procedure from a .NET Application
using ODBC ? I tried different ways like:

SELECT myProc() FROM...
SELECT { fn myProc()} FROM...
SELECT { call myProc()} FROM...
SELECT { exec myProc()} FROM...

SELECT { fn now()} FROM.. for instance, works very well.
Is there a trick or any solution to execute my VB code ?
Im using Access 2000/ and,or 2003

thank you
Sven

Nov 13 '05 #1
1 1386
I think the right (only?) way to do this is to use OLE Automation to
invoke Access to run your VBA code, and not ODBC. You'll have to look
around on MSDN, etc., to get the details for it, but it should be
possible via a COM-.Net bridge.

Jet (the access database query engine) doesn't do this, if I remember
correctly.

Are you having problems running queries in a MDB that use your own VBA
functions not working via ODBC?

Sven wrote:
HI all,

is there a way to call my own VB Procedure from a .NET Application
using ODBC ? I tried different ways like:

SELECT myProc() FROM...
SELECT { fn myProc()} FROM...
SELECT { call myProc()} FROM...
SELECT { exec myProc()} FROM...

SELECT { fn now()} FROM.. for instance, works very well.
Is there a trick or any solution to execute my VB code ?
Im using Access 2000/ and,or 2003

thank you
Sven

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: ericellsworth | last post by:
Hi, I'm trying to use a class to pass variables back and forth from a form opened in dialog mode. I have created a class which invokes a form in its show method, like so: Public Sub Show() '...
5
by: Zlatko Matić | last post by:
Hello. How can I call some functions on MSDE when working in .mdb ? Especially in-line functions which are similar to stored procedures. How can I use MSDE in-line functions as recordsource for...
3
by: Marius Rus | last post by:
I have a project in C# that do the followings: From an csv text file it is taking datas and inserted into an paradox database. My problem it is that when writing into the paradox database it is...
4
by: eighthman11 | last post by:
I'm calling a stored procedure on a sql server from an access application. I just need the stored procedure to run I do not need any data returned from the stored procedure to my Access...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.