Cancelling a button click

  • Thread starter Thread starter weircolin
  • Start date Start date
W

weircolin

Hi

I have a button that when I click it, it resets a column. Access
automatically brings up a popup asking if I'm sure. If I say no I get
a runtime error. Is there a line of code I could add to the following
to stop this from happening?

Private Sub Command24_Click()
DoCmd.RunSQL "Update [Newsletter Database] Set Requirement = Null;"
End Sub

Thanks

Colin
 
Colin,

Are you sure you have the right group? This group is for ASP.NET questions
(web based stuff)... you seem to be asking about Access applications.

Also, it might help if you posted the details of the specific runtime
error... there's lots and lots of them :)

Regards,

Rob MacFadyen
 
Back
Top