Results 1 to 3 of 3

Thread: .Find???? Methods

  1. #1

    Thread Starter
    Lively Member chongo 2002's Avatar
    Join Date
    Apr 2000
    Posts
    106

    Arrow

    How do you use the .findfirst .findnext etc commands to display search results?

    txtsearch.text <-- what user eneters and the it needs to populate 3 more textboxes with reults

    Name.text <--needs to show results name
    Number.text <-- needs to show names number
    Name2.text <-- needs to show names name2

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    74
    assuming you have a recordset rsTemp


    with rsTemp
    .Index ="PrimaryKey"
    ' I'm assuming the user enters the primary key?

    .FindFirst txtsearch

    if .NoMatch then
    ' not found in db
    else
    Name = !Name
    Number = !Number
    Name2 = !Name2
    end if
    end with

  3. #3

    Thread Starter
    Lively Member chongo 2002's Avatar
    Join Date
    Apr 2000
    Posts
    106
    i get an error on the primaty key. error 3800 not an indexed field. Any suggestions?

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