H
Helen
I have a problem in Access2002 where the .NoMatch
property will not compile. This can be reproduced on a
simple db as follows:
Public Sub test()
Dim db As DAO.Database
Dim rec As Recordset
Set db = CurrentDb
Set rec = db.OpenRecordset("table1")
With rec
..Index = "PrimaryKey"
..Seek "=", "1234"
If Not .NoMatch Then
Debug.Print rec![test]
End If
End With
End Sub
The above will not compile although NoMatch is listed in
the DAO 3.6 library.
Any ideas?
Many thanks,
property will not compile. This can be reproduced on a
simple db as follows:
Public Sub test()
Dim db As DAO.Database
Dim rec As Recordset
Set db = CurrentDb
Set rec = db.OpenRecordset("table1")
With rec
..Index = "PrimaryKey"
..Seek "=", "1234"
If Not .NoMatch Then
Debug.Print rec![test]
End If
End With
End Sub
The above will not compile although NoMatch is listed in
the DAO 3.6 library.
Any ideas?
Many thanks,