Results 1 to 2 of 2

Thread: Working with a dbgrid

  1. #1
    Guest

    Post

    how can i do to return a value of a field selected in a dbgrid.

    I do a query, then i show the result in a dbgrid, then the user can selected one fields by doublecliking on it, but how i take this value....

    one problem, is my dbgrid has 8 fields, but after i work with only one fields..

    Another question,how should i print the data in a dbgrid..without printing all the form.

    Thanks a lot...


  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Get current selected:
    MsgBox DBGrid1.Columns(DBGrid1.Col).Text

    I don't understand this question: one problem, is my dbgrid has 8 fields, but after i work with only one fields..

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