RunCommand problem

  • Thread starter Thread starter James Franklin
  • Start date Start date
J

James Franklin

Hi,

I have a simple form with a subform in an app. written in A2K. The main form
has a command button which deletes the current record using the code

DoCmd.RunCommand acCmdDeleteRecord

Works fine in A2K. When I try and run it using AXP (file format is still
A2K), the record is still deleted but I always get a 'No Current Record'
error (error no 3021). Any ideas?

Thanks as always,
Jim F.
 
I had the same experience in 2K -> 2K2... I had to explicitly trap error 3021
("On Error GoTo"...and resume at a labeled line in my code to get around
this. Other suggestions welcomed!

TL
 
Back
Top