Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I stop update form from being called from inside an insert button? 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone.

I have an update form which includes a browse along with a set of insert, change, and delete buttons.

When the user selects the insert button, I display a message if the total layaway sales amount is 0. The insert button calls another update form to handle the individual layaway payment details.

Can I prevent the update form from being called if the total layaway sales amount is 0?

Thanks.

Emad
 
Hi Emad,

In the EVENT:Accepted Embed of the ?Insert button BEFORE the parent call, do the following :

IF LayawaySales = 0
BEEP
MESSAGE('Must have SALE ...')
SELECT(?Browse) ! OR WHATEVER CONTROL YOU WANT
END

Regards
 
Hi ShankarJ,

I give it a try in the morning.

Thanks.

Truly,
Emad
 
Hi ShankarJ,

I tried it and it worked great.

Thanks.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top