Results 1 to 5 of 5

Thread: Coding the ado to a textbox!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73
    Ok I simply now need to assign these textboxes to a new ado when a datagrid gets focus IN CODE. I cannot get the syntax right, anyone have a example.

    IE: Datagrid2_gotfocus
    txt1.text = (adodc3 and hooks to the CusName Datafield)

    Whats the Syntax??? Danke!

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124
    Are you wanting to access a recordset that you already have open?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73
    YES

  4. #4
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124


    txt.text = rs.Fields("CusName").Value


    rs is the name of the recordset that you have open.


  5. #5
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124
    Also check out the ADO data control in the MSDN. Under the ADO data control there is a recordset property. This may be what you were asking for. Sorry for taking you the long route if it was.

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