I'm trying to place an "ADD" button in a form to allow the user to add
records to a table. I'm using DAO. For some reason, the record gets
added, but the form doesn't point to it. In addition, the record
count doesn't seem to update on the screen.
===========================================
Private Sub bAdd_Click()
Dim strSQL As String
Dim rst As DAO.Recordset
strSQL = "Select * from Volunteers where NAME=""BLANK"""
Set rst = CurrentDb.OpenRecordset(strSQL)
rst.AddNew
rst.Update
rst.Bookmark = rst.LastModified
Me.Bookmark = rst.Bookmark
rst.Close
Set rst = Null
End Sub
============================================
Is there a simplier way to code this -- using DAO?