How do you use the "exit sub" in SalesLogix to prevent a form from closing???


I was trying to use “exit sub” on AXFormClose to prevent closing the form but I cannot get it to work correctly.

if flag<>“Y” then
msgbox (“Please select Campaign Response “), 64,” SelectCampaignResponse”

exit sub

end if


Function AXFormCloseQuery(Sender)

if (Sender.ModalResult =2 and flag<>“Y”) then
AXFormCloseQuery = false
AXFormCloseQuery = true
end if

Want content like this delivered to your inbox? Sign up for our newsletter!

Submit a Comment

Your email address will not be published. Required fields are marked *