the function does not exist itis a simple example
by example the function can calculate the double price
function calculatesellprice(price)
return price *2
end function
this is not a problem but i have other function by example
createmyspecialguid()
this create a special ID for distribuited database by me
is not a known guid
and this is a vb function
other than i have more other function that i use in a query
in msaccess i create this function in a vb module
and then i can use it inside my queries
the source database (by now)
is msaccess database (i'm migrating all my software in dotnet but this is
not possible all in one time, i release form by form migration)
can you help me
thanks CT
FLAVIO
"CT" <carstent@spammersgoawayintegrasol.dk> ha scritto nel messaggio
news:%23C$g0E$zFHA.908@tk2msftngp13.phx.gbl...
[quoted text, click to view] > In that case you need your code to be a function in the database, such as
> a stored procedure. I don't know the exact calculation you perform in the
> CALCULATESELLPRICE function, but do let me know and which database and
> version are you using?
>
> --
> Carsten Thomsen
> Communities -
http://community.integratedsolutions.dk >
> "Flavio Miano" <info@flaviosoft.com> wrote in message
> news:uXqXja9zFHA.2076@TK2MSFTNGP14.phx.gbl...
>> excuse me but i don't understand
>> in this case the function is executed when i release the command
>> or when the command will be executed ?
>>
>> the query must calculate the price by every row !!!
>> thanks
>> FLAVIO
>>
>>
>> "CT" <carstent@spammersgoawayintegrasol.dk> ha scritto nel messaggio
>> news:%23IqFo78zFHA.2652@TK2MSFTNGP14.phx.gbl...
>>> "select ID, PRICE, " & CALCULATESELLPRICE(PRICE) & " AS SELLPRICE FROM
>>> PRODUCTS"
>>>
>>>
>>> --
>>> Carsten Thomsen
>>> Communities -
http://community.integratedsolutions.dk >>>
>>> "Flavio Miano" <info@flaviosoft.com> wrote in message
>>> news:ercWxV4zFHA.2884@TK2MSFTNGP09.phx.gbl...
>>>> Hi all
>>>> i'm new in vb.net
>>>> i'm coming from access
>>>> and now my first problem is :
>>>> using ado.net in sql statement can i use my vb functions
>>>> example:
>>>> select ID, PRICE, CALCULATESELLPRICE(PRICE) AS SELLPRICE FROM PRODUCTS
>>>>
>>>> WHERE CALULATESELLPRICE IS MY VB FUNCTION
>>>>
>>>> this is very simple in MS Access but how to do this in VB.NET
>>>>
>>>> Thanks in advance
>>>> FLAVIO
>>>>
>>>
>>>
>>
>>
>
>