Results 1 to 2 of 2

Thread: URGENT, ADO/ Recordsets

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    32
    HELP (VB)

    OK we are using ADO here,

    I need to search in a table to find some data.

    For example locate a customer ID, then also retrieve the customer firstname, last name etc,

    Thanks )

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Dim g_Db As New ADODB.Connection
    Dim rs As New ADODB.Recordset
    Dim sTmp As String
    Dim sQry As String


    sTmp = "File Name=" & App.Path & "\Database.UDL"
    g_Db.Open sTmp

    sQry = "select firstname, lastname from table where customerid='" & Trim(form.textfield) & "'"

    rs.Open sQry, g_Db


    [Edited by JHausmann on 06-05-2000 at 06:39 PM]

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