As I indicated, It repeat the same over and over and all the records has the same value, Not what I want.
Here is what I mean.
Private Sub Command1_Click()
Dim mcnn As New ADODB.Connection
Dim mstrSQL As String, mdblData As Double
mcnn.ConnectionString =...
It works in MS Access mdb BUT I want to use within my application in VB. This application has to open dBase,Excel,MS Access or flat file. So that is why I have to find a way to make it work in VB. "SQL statement".
First of all Thanks for all your help.
It doesn't works. It calls only once. That means if the first number is 9 it will always use the 9 to all the records processed.
If I want to pass a field to this function. HOW ?. I tryed and it didn't work.
"UPDATE [table] set field1 = '"...
This call is from VB project NOT "MS Access Database file".
It work only in MS Access not in VB. WHY ??????? and how to make it works.
"UPDATE [table] set field1 = myfunction()"
Here is my function code:
public function myfunction() as variant
myfunction =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.