Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP .NET & Access Queries

Options
  • 17-06-2004 3:38pm
    #1
    Registered Users Posts: 937 ✭✭✭


    have a small problem with an insert in VB.NET....i keep getting a compilation error
    BC30203: Identifier expected.

    and i cant seem to see where the problem is....any help much appreciated

    code:
    sql_insert = "insert into testTable (ID, DESC) values ('" & _ ID & "', '" & DESC & "')"


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    Take out the underscore.

    sql_insert = "insert into testTable (ID, DESC) values ('" & _ ID & "', '" & DESC & "')"

    or start a new line directly after it.


  • Registered Users Posts: 937 ✭✭✭Diddy Kong


    cheers.....


Advertisement