Link to home
Start Free TrialLog in
Avatar of Betita
Betita

asked on

match a name

How do I match a name that I put in a textbox with a random access file in an array? How do I search through an array of names? I have this code:

Private Sub find_click()
Dim information As entry, flag As Boolean
  ' search through names for
If txtNom.Text <> "" Then
Do While (information.Nom <> txtNom.Text) And (Not EOF(1))
  flag = False
Loop
Avatar of csameer1
csameer1

If InStr(1, Information.TypeName, txtName.Text, vbTextCompare) Then
    flag = True
    Exit Do
ASKER CERTIFIED SOLUTION
Avatar of PocketLint
PocketLint

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
*TWO* points?

M
Avatar of Betita

ASKER

Adjusted points from 2 to 10
Avatar of Betita

ASKER

Comment accepted as answer