Dear,
Its working good in my Db, but have 2 doubts.
1, The same function how will work with data entry = yes.
(Because i want to open the entry form except existing records.)
2, How to change Record source selection from 'Table' to 'Query
(Because i need to change the Record source to 'query'. which i made
a query focusing with criteria.)
I think below have to make some changes. please help me
Private Sub Form_Open(Cancel As Integer)
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * FROM 1", dbOpenDynaset)
Set Me.Recordset = rs
End Sub