clicking the command button and then without parameter value if i click cancel then a dialog box appear saying stop all macro.

aligahk06

Active Member
Joined
Apr 26, 2009
Messages
257
Dear All,

I have an access form and when i click the command button and then without parameter value if i click cancel then a dialog box appear saying stop all macro.

Is there any way to avoid this message to display.

Rgds,
aligahk06
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Micron

Well-known Member
Joined
Jun 3, 2015
Messages
1,850
I suppose one way would be to convert your macros to code procedures. Your macro must be raising an error but you didn't say, yet it's the likely cause for the stop macro prompt. If you don't want to use code, then you will have to structure the macro to prevent whatever error it is raising. Perhaps that is because a value was not provided? Then check for the value first and exit if not found.
 

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
821
I should expect you can test for the Cancel being pressed or the particular error.?
General consensus from a Google search appears to be use VBA.
You could also see if this link helps.?

 

Watch MrExcel Video

Forum statistics

Threads
1,102,351
Messages
5,486,351
Members
407,541
Latest member
Emilybuhman

This Week's Hot Topics

Top