I get a error with the code below the part [ .Index ] this what is shown to me when I debug. the column that I am trying to do the search on is called Code.
Compile error:
Method or data member not found
Private Sub cmdFind_Click()
prompt$ = "Enter the full Code for all sibling search."
'get string to be used in the Code field search
SearchStr$ = InputBox(prompt$, "Sibling Search"
datPrimaryRS.Recordset.Index = "Code" 'use Code
datPrimaryRS.Recordset.Seek "=", SearchStr$ 'and search
If datPrimaryRS.Recordset.NoMatch Then 'if no match
datPrimaryRS.Recordset.MoveFirst 'go to first record
End If
End Sub
thks
Greg Live to learn or die trying
Compile error:
Method or data member not found
Private Sub cmdFind_Click()
prompt$ = "Enter the full Code for all sibling search."
'get string to be used in the Code field search
SearchStr$ = InputBox(prompt$, "Sibling Search"
datPrimaryRS.Recordset.Index = "Code" 'use Code
datPrimaryRS.Recordset.Seek "=", SearchStr$ 'and search
If datPrimaryRS.Recordset.NoMatch Then 'if no match
datPrimaryRS.Recordset.MoveFirst 'go to first record
End If
End Sub
thks
Greg Live to learn or die trying