access17401
Registered User.
- Local time
- Today, 07:50
- Joined
- Aug 24, 2017
- Messages
- 33
Good morning,
I have created a search function using a text box and command button bellow. This searches and returns from table according to the URN.
Private Sub Command200_Click()
If (txtGoTo & vbNullString) = vbNullString Then Exit Sub
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[URN]=""" & txtGoTo & """"
If rs.NoMatch Then
MsgBox "Sorry, no such record '" & txtGoTo & "' was found.", _
vbOKOnly + vbInformation
Else
Me.Recordset.Bookmark = rs.Bookmark
End If
rs.Close
txtGoTo = Null
End Sub
I have a very large database and searching for the URN may have 20 results so I want to create a combo search also using 'AppelID' and textbox "txtAppeal"
So i am then searching the database by URN and AppealID, I have been trying to update the code above to include this, but have had no success.
Would someone be able to help me work out how to do this? Thank you.
I have created a search function using a text box and command button bellow. This searches and returns from table according to the URN.
Private Sub Command200_Click()
If (txtGoTo & vbNullString) = vbNullString Then Exit Sub
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[URN]=""" & txtGoTo & """"
If rs.NoMatch Then
MsgBox "Sorry, no such record '" & txtGoTo & "' was found.", _
vbOKOnly + vbInformation
Else
Me.Recordset.Bookmark = rs.Bookmark
End If
rs.Close
txtGoTo = Null
End Sub
I have a very large database and searching for the URN may have 20 results so I want to create a combo search also using 'AppelID' and textbox "txtAppeal"
So i am then searching the database by URN and AppealID, I have been trying to update the code above to include this, but have had no success.
Would someone be able to help me work out how to do this? Thank you.