What I mean is this:
In the method you call to update the caption, set the caption directly. In other words, perform the assignment this way:
THISFORM.lblAmount.caption = IIF(credit, "Credit", "Debit")
in the method's code. The value of the caption at design time should be a string, not a function.
Joe
>Joe,
>
>I changed the caption of lblAmount to = thisform.amttype & created the method amttype, which now contains IIF(credit, "Credit", "Debit"). Is this what you meant? ...... This doesn't work either. Thanks for your help!
Joseph C. Kempel
Systems Analyst/Programmer
JNC