|
-
Oct 2nd, 2000, 10:20 PM
#1
Thread Starter
Member
Hello how do i delete a row with DAO ?
i allway's get a error with this :
any idea why ?
Private Sub mnudel_Click()
On Error GoTo 1:
RS.Edit
RS.Delete
db.Recordsets.Refresh
DbRefreshTextBox
DbRefreshTextBox
Exit Sub
1:
MsgBox Err.Description
-
Oct 3rd, 2000, 12:53 AM
#2
Hyperactive Member
Hello Zulander
I don't know what the error is but it is better to use this line:
if RS.RecordCount <> 0 then RS.Delete
You don't need: RS.Edit
Nice regards,
Michelle.
-
Oct 3rd, 2000, 08:34 AM
#3
RS.delete
RS.update
Don't use the rs.edit as Michelle mentioned & I think I'm right in putting the update instead of Refresh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|