>Thanks Jason.
>
>I Code it like this:
>*
>if !TableUpdate(.....)
> =MessageBox(.....)
>endif
>*
>But the messagebox never apears.
It may well be the parameters in your TableUpdate.
This is the relevant code from the save button for a grid in an app of mine.
Select (This.Parent.grdCustCtrl.RecordSource)
If ! TableUpdate(1,.F.,(This.Parent.grdCustCtrl.RecordSource))
cMsg = "A problem occured while saving your changes" + Chr(13) ;
+ "Contact user support for this application"
=MessageBox(cMsg, DBB_OK+ICNINFORM, TTL_CONTACTSUPPORT)
Endif
This has worked perfectly not only here but elsewhere without fail.
Regards,
Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage