Results 1 to 3 of 3

Thread: Problem with .FindFirst, .FindLast,...!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    116

    Exclamation

    I keep getting run time error 3251(Operation
    is not supported for this type of object) with
    .FindFirst, .FindLast, ...

    example:
    With rstCustomer
    .FindFirst strID
    End With
    0101011001000010
    01101111011011100110110001101001011011100110010101110010

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    Dim strSql1 As String
        strSql1 = "SELECT *, LName & ', ' & FName as FullName FROM Phone order by lname;"
        datName.RecordSource = strSql1
        datName.Refresh
    'strFindme = whatever you look for 
        strFindMe = DBCombo1.Text
    strFindMeName = the fieldname to seache in and what to find
        strFindMeName = "fullname = '" & strFindMe & "'"
    '
        datName.Recordset.FindFirst strFindMeName
    FindLast uses the same stuff...

    datName.Recordset.FindLast strFindMeName
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    The type of error you describe is usually due to opening the recordset as a "table" rather than as a "dynaset" or "snapshot". The "Find" methods only work with the latter two. For table-type recordsets, you need to use "Seek".
    "It's cold gin time again ..."

    Check out my website here.

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