Results 1 to 6 of 6

Thread: update SQL table using MSflexgrid

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    update SQL table using MSflexgrid

    Hi

    I want to update a table using a msflexgrid - is it better to use an
    update stmt or is there a better way???

    plz help


    ** HOLLY **

  2. #2

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    anyone?? is it just a simple update or would I need to do more?
    ** HOLLY **

  3. #3
    Lively Member
    Join Date
    Nov 2000
    Location
    NC
    Posts
    66
    Retrieve the values from the grid, put them into an update statement and execute the update from a command object.

  4. #4

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Originally posted by KMcKenzie
    Retrieve the values from the grid, put them into an update statement and execute the update from a command object.
    I did not ask how to do it , I asked whether it would be better
    to use an update stmt or is there a better way of accomplishing
    this???
    ** HOLLY **

  5. #5
    Lively Member
    Join Date
    Nov 2000
    Location
    NC
    Posts
    66
    And I was telling you that was the best way to do it. Otherwise I would have offered and alternative

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    It's better to use the connection object's EXECUTE method. This of course assuming you're using ADO.

Posting Permissions

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



Click Here to Expand Forum to Full Width