Results 1 to 2 of 2

Thread: DataBase

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Fenton,Mo.
    Posts
    15

    Question DataBase

    Hello,
    I am working with a microsoft Access'97 (OLE DB) database. I have no experience with this. I need to find the 1 row that matches variables in 5 different colums. Then extract a couple of fields from (found row) and set them to a textbox.
    I could really use some help getting started. I tried to use a sample from another post but had no luck. Can I use SQL statements with a OLE DB? If so, how?


    Dim srch As String
    srch = "Tool diameter= '" & dia & "'"
    Dim fndrow As DataRow() = ToolsDataSet1.Tables("Tool table").Select(srch)

    Dale

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Fenton,Mo.
    Posts
    15
    Ok I got this code to work:

    Dim srch As String
    srch = "RPM= '" & dia & "'"
    Dim fndrow As DataRow() = ToolsDataSet1.Tables("Tool table").Select(srch)


    I just cant get it to work if my colum name has 2 or more words like this one:

    Dim srch As String
    srch = "Tool diameter= '" & dia & "'"
    Dim fndrow As DataRow() = ToolsDataSet1.Tables("Tool table").Select(srch)

    help Please!!
    Dale

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