Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: sub routien

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sub routien

    i need to add item in data base ,the sql statment have to be writine in function, and iwill call it via button how??????????

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I'm not totally sure what you mean...

    Can you explain in more detail where you're having problems?
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Pilipinas
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In ADO, you can use either Addnew or issue an Sql Insert statement to add a new record to a db.

    Maybe this article can help. It's almost about what you said: add a record to a db, using a button, except that the code to execute the insert is not used in a function or sub routine, but rather as an inline code block. At least you can pick up from there . . . better than none ...

    Letting Users Update Information


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •