SQL COMMAND

databases United States
  • 19 years ago

    The code is:
    db.excute "insert into Table1 (Feild1) values F(4)"
    "F" is a function that I define in a module in my project
    the error is  "Function is not define in expresion" ....
    What is the reason? this my quastion.

  • 19 years ago

    This is becoz ur function is only recognize by VB but not SQL syntax do something like this:


    db.excute ("insert into Table1 (Feild1) values " & F(4))


    This should works

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann