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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Field Expression?

Status
Not open for further replies.

MJWilson0675

Technical User
May 1, 2003
3
US
I am trying to write a form that one of the fields do the following

Field 1 = PendYN (yes/no)
Field 2 = CashTotal
Field 3 = PendingTotal

The expression I need to figure out is
if PENDYN is equal to YES then show CASHTOTAL in the PENDINGTOTAL field, if PENDYN is anything else leave the PENDINGTOTAL field blank.

I am lost can anyone help?
 
On exit event of Field 1 (The PendYN) add the following code:

if me.pendyn = "Yes" then
me.pendingtotal = cashtotal
else
me.pendingtotal = ??? (blank or zero???)
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top