|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
No Current RecordAccess 2000. Win xppro. I have created a command button to delete the current record on my form. The command button created by the wizard uses the DoMenuItem. It gives me an error of "No Current Record" after deleting the record. I made another one without the wizard using DoCmd.RunCommand acCmdDeleteRecord This gives me an error of "Runtime Error 3021 No Current Record". With the option to End or DeBug. When I select DeBug the DoCmd.RunCommand acCmdDeleteRecord line is highlighted. I have read everything I can find in Access VBA help on No Current Record but quite frankly Microsoft help usually gives me a headache and little else. As usual any advice or suggestion is welcome. Thank you Mike Hi:
Take a look at this -- http://www.issociate.de/board/post/171378/How_to_bypass_'No_current_record'_error.html Regards, Naresh Nichani Microsoft Access MVP Show quote "Mike Revis" <m***@hazmatexpress.com> wrote in message news:111no4m65et0c2c@corp.supernews.com... > Hi Group. > Access 2000. Win xppro. > > I have created a command button to delete the current record on my form. > > The command button created by the wizard uses the DoMenuItem. > > It gives me an error of "No Current Record" after deleting the record. > > I made another one without the wizard using DoCmd.RunCommand > acCmdDeleteRecord > This gives me an error of "Runtime Error 3021 No Current Record". With the > option to End or DeBug. When I select DeBug the DoCmd.RunCommand > acCmdDeleteRecord line is highlighted. > > I have read everything I can find in Access VBA help on No Current Record > but quite frankly Microsoft help usually gives me a headache and little > else. > > As usual any advice or suggestion is welcome. > > Thank you > > Mike > > Thank you.
Mike "Naresh Nichani MVP" <nareshnichani@HOT MAIL> wrote in message http://www.issociate.de/board/post/171378/How_to_bypass_'No_current_record'_news:O4TxeOXGFHA.3792@TK2MSFTNGP10.phx.gbl... > Hi: > > Take a look at this -- > error.html Show quote > > Regards, > > Naresh Nichani > Microsoft Access MVP > > "Mike Revis" <m***@hazmatexpress.com> wrote in message > news:111no4m65et0c2c@corp.supernews.com... > > Hi Group. > > Access 2000. Win xppro. > > > > I have created a command button to delete the current record on my form. > > > > The command button created by the wizard uses the DoMenuItem. > > > > It gives me an error of "No Current Record" after deleting the record. > > > > I made another one without the wizard using DoCmd.RunCommand > > acCmdDeleteRecord > > This gives me an error of "Runtime Error 3021 No Current Record". With the > > option to End or DeBug. When I select DeBug the DoCmd.RunCommand > > acCmdDeleteRecord line is highlighted. > > > > I have read everything I can find in Access VBA help on No Current Record > > but quite frankly Microsoft help usually gives me a headache and little > > else. > > > > As usual any advice or suggestion is welcome. > > > > Thank you > > > > Mike > > > > > > |
|||||||||||||||||||||||