PC Review


Reply
Thread Tools Rate Thread

calling sql server 2005 function in access

 
 
John
Guest
Posts: n/a
 
      6th Oct 2010
I have a button on the main form does several processes. Part of the
process is to see if the user exceeded their purchase limits. The DBA
has provided a scalar-valued function (dbo.POLimitGetFromEmployeeID)
that returns a decimal based on the userid that is passed into it.
The parameter for the function is @emp_id. Below is the IF statement
line that would use it.

If Me.Subtotal.Value > "scalar-valued function result goes here" Then

Never had to use/call one of these before. Been googling but I am
finding very limited information. How does one go about calling a
scalar-valued function in access07 to get the return value?

Thanks.
John


 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      6th Oct 2010
The only way you'll be able to call a SQL Server function in Access is if
you're using a pass-through query.

"John" <(E-Mail Removed)> wrote in message
news:94305859-4223-4575-8453-(E-Mail Removed)...
> I have a button on the main form does several processes. Part of the
> process is to see if the user exceeded their purchase limits. The DBA
> has provided a scalar-valued function (dbo.POLimitGetFromEmployeeID)
> that returns a decimal based on the userid that is passed into it.
> The parameter for the function is @emp_id. Below is the IF statement
> line that would use it.
>
> If Me.Subtotal.Value > "scalar-valued function result goes here" Then
>
> Never had to use/call one of these before. Been googling but I am
> finding very limited information. How does one go about calling a
> scalar-valued function in access07 to get the return value?
>
> Thanks.
> John
>
>

 
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
Error calling a function in SQL Server Robe Microsoft Access VBA Modules 4 1st Dec 2008 06:23 PM
VS.NET 2005: Debug: Go to calling function? Pieter Microsoft Dot NET 2 3rd Nov 2006 04:47 PM
Server side function calling =?Utf-8?B?SGlmbmkgU2hhaHphcmQ=?= Microsoft ASP .NET 2 13th Oct 2005 01:27 PM
Calling client function from server.. Roger Microsoft ASP .NET 7 16th Oct 2004 06:12 PM
Calendar calling server function Todd Lu Microsoft VB .NET 0 14th Oct 2003 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.