|
-
Oct 11th, 2001, 01:03 PM
#1
Thread Starter
Hyperactive Member
Delete a record on a bound form...
I have a bound form using a DataControl.
I need to be able to click a button and delete the current record and then move to the next record (or the previous record if there is no next record)
When I try:
Code:
Private Sub Command2_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
End Sub
I get error # 3426 reading: This action was cancelled by an associated object.
How can I make this work?
Thanks!
-
Oct 12th, 2001, 06:54 AM
#2
Frenzied Member
Re: Delete a record on a bound form...
Originally posted by rockies1
I have a bound form using a DataControl.
I need to be able to click a button and delete the current record and then move to the next record (or the previous record if there is no next record)
When I try:
Code:
Private Sub Command2_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
End Sub
I get error # 3426 reading: This action was cancelled by an associated object.
How can I make this work?
Thanks!
Properties window - Read only -> true ???
oh1mie/Vic

-
Oct 12th, 2001, 08:26 AM
#3
Thread Starter
Hyperactive Member
No.
In fact, it does delete the record, it just doesn't let me move after it does...
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
|