Re: UDF as field data source

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: furkat (furkatfzNOSPAM_at_hotmail.com)
Date: 05/08/04


Date: Sat, 8 May 2004 22:02:29 +0500

Thank you
this solved my problem. Спасибо, Игорь!
Kind regards
Furkat

"Igor V. Makeev" <igor@mebelmassiv.tula.ru> сообщил/сообщила в новостях
следующее: news:eqpYLTDNEHA.3052@TK2MSFTNGP12.phx.gbl...
> Hello, furkat!
> You wrote in message on Fri, 7 May 2004 13:22:46 +0500:
>
> f> I have one UDF (user-defined function in MS SQL 200) which returns me
> f> one value, and I want to use it as a data source for a filed in my form
> f> (.adp MS Access 2000). And I can't find the right syntax to reference
my
> f> UDF. Could you kindly point me to the right syntax?
>
> If your form is bound on a query, you can include UDF's call into it
> and use as a "Control Source" for a necessary field. Otherwise you can do
it
> via VBA. For an example:
>
> Private Sub Form_Open(Cancel As Integer)
> Me.Text0 = CurrentProject.Connection.Execute("select
owner.udf_name()")(0)
> End Sub
>
> With best regards, Igor.
> ICQ: 111469481
>
>



Relevant Pages

  • Re: Worksheet Change: Display/hide columns depending on date
    ... Kind Regards ... Private Sub Workbook_Open ... to do this automatically depending on the present date. ... display and hide specific columns depending on the date. ...
    (microsoft.public.excel.programming)
  • Re: Decimal problems
    ... Kind regards, ... Microsoft MVP - Excel ... |> | Private Sub Worksheet_Change ...
    (microsoft.public.excel.programming)
  • Re: Conditional Control Visibility
    ... many thanks and kind regards. ... Put this code in the form's OnCurrent Procedure; ... Private Sub cboReferredTo_AfterUpdate ... coding somewhere ...
    (microsoft.public.access.formscoding)
  • Re: Worksheet Change: Display/hide columns depending on date
    ... Kind Regards ... Private Sub Workbook_Open ... to do this automatically depending on the present date. ... display and hide specific columns depending on the date. ...
    (microsoft.public.excel.programming)
  • Re: Text box validation rule
    ... my text box is unbound to data source. ... "Mark" wrote: ... >> Kind Regards ...
    (microsoft.public.access.formscoding)