You probably need to do a Me.Refresh or Me.Dirty = False to get the updates
recorded to the table. Why go through all that to delete records? You can
run a simple query:
strSQL = "Delete * From MyTable WHERE CheckField = 1;"
DOCmd.RunSQL strSQL
to delete the records. You can do a DSUM() of the field if you want to tell
the user how many records are being deleted.
> Access 2003
> I have a small table with (among other fields) two check boxes one, if
[quoted text clipped - 38 lines]
> vbYesNoCancel
> End Sub
TeeSee - 09 Mar 2008 19:12 GMT
> You probably need to do a Me.Refresh or Me.Dirty = False to get the updates
> recorded to the table. Why go through all that to delete records? You can
[quoted text clipped - 50 lines]
>
> - Show quoted text -
TeeSee - 09 Mar 2008 19:13 GMT
> You probably need to do a Me.Refresh or Me.Dirty = False to get the updates
> recorded to the table. Why go through all that to delete records? You can
[quoted text clipped - 50 lines]
>
> - Show quoted text -
Justin .... Thanks for your reply. This is the second question I've
asked in the last two or three days where the answer was to run a
query. Where and how doe you run that query frm a command button?
Thanks
TeeSee - 09 Mar 2008 19:40 GMT
> > You probably need to do a Me.Refresh or Me.Dirty = False to get the updates
> > recorded to the table. Why go through all that to delete records? You can
[quoted text clipped - 58 lines]
>
> - Show quoted text -
Sorry Justin ... Forget that last question ... The light just came on.
Thanks again for the response.