Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim SQL As String, db As Database, rst As RecordSet
SQL = "Select CompanyName From MyTable WHERE CompanyName = """ & Me!cboCompanyName & """;"
Set db = CurrentDB
Set rst = db.OpenRecordset(SQL)
If rst.EOF Then
Me!chkCompanyFound = True
Else
Me!chkCompanyFound = False
End If
rst.Close
Set rst = Nothing
Set db = Nothing
Dim filt As String
filt = "[CompanyName] = """ & Me!cboCompanyName & """;"
Me.Filter = filt
Me.FilterOn = True
Dim rst As RecordSet
Set rst = Me.RecordSetClone
rst.FindFirst "[CompanyName] = """ & Me!cboCompanyName & """"
Me.Bookmark = rst.Bookmark
Set rst = Nothing
BTW, the FAQ that Neufarth suggested may be sufficient for your purpose, but it is not appropriate for a bound form. That is, if your users need to update the data, the FAQ method won't work for you. Rick Sprague