PC Review


Reply
Thread Tools Rate Thread

Call an Access VBA module from SQL Server.

 
 
Albert
Guest
Posts: n/a
 
      7th Sep 2003
Hi, I hope someone can help me here. We use SQL Server and MS Access.
In SQL Server, I created a socalled "linked server" to MS Access. That
means that one can see tables and queries stored in Access, from
within SQL server.
Note: SQL server is on a Server machine, Access is on a client PC.

Now, would it be also possible to call an Access vba module, from SQL
Server ???

Any tip will be appreciated !
Thanks !
 
Reply With Quote
 
 
 
 
Joe Fallon
Guest
Posts: n/a
 
      7th Sep 2003
I was not able to do it.
I re-wrote the Access functions as SQL Server UDFs (User Defined Functions.)
--
Joe Fallon
Access MVP



"Albert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I hope someone can help me here. We use SQL Server and MS Access.
> In SQL Server, I created a socalled "linked server" to MS Access. That
> means that one can see tables and queries stored in Access, from
> within SQL server.
> Note: SQL server is on a Server machine, Access is on a client PC.
>
> Now, would it be also possible to call an Access vba module, from SQL
> Server ???
>
> Any tip will be appreciated !
> Thanks !



 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      8th Sep 2003
Slightly different from Joe: I didn't think it is possible so I re-wrote my
Access UDFs to MS-SQL Server UDFs from the start.

I cannnot find anything about using VBA UDFs in SQL Server in a number of
books I read. In addition, I don't think SQL Server is design as a "Client"
to be able to use objects from (automation) Server.

Actually, it is quite a good exercise to translate VBA UDFs to SQL Server
UDFs.

Another possibility is to use a Pass-Through Query to retrieve required data
only and the use this PTQ as the Source for a normal Query in which you can
use your VBA UDFs.

--
HTH
Van T. Dinh
MVP (Access)



"Albert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I hope someone can help me here. We use SQL Server and MS Access.
> In SQL Server, I created a socalled "linked server" to MS Access. That
> means that one can see tables and queries stored in Access, from
> within SQL server.
> Note: SQL server is on a Server machine, Access is on a client PC.
>
> Now, would it be also possible to call an Access vba module, from SQL
> Server ???
>
> Any tip will be appreciated !
> Thanks !



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
call VB.NET Form from Access VBA module bobk544 Microsoft Access 3 17th Jan 2009 03:06 PM
Re: Call a VBA module from Microsoft Access Nick Hodge Microsoft Excel Programming 2 19th Dec 2006 05:41 PM
Bad API Call (SendInput) from ACCESS module =?Utf-8?B?ZWtn?= Microsoft Access VBA Modules 1 8th Oct 2006 11:54 AM
How to call Sub in a code module from outside of Access =?Utf-8?B?RnJhbmsgTQ==?= Microsoft Access VBA Modules 2 12th Jul 2005 07:04 PM
how to call Access's function in different module in Excel VBA =?Utf-8?B?bWlhbyBqaWU=?= Microsoft Excel Programming 0 25th Jul 2004 04:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.