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

changing the amt from negative to positive in a given field 1

Status
Not open for further replies.

R9772

Technical User
Aug 15, 2002
76
US
can anyone help me with changing the amounts of one column to a positive or a negative if another column has a date greater than say 10/31/02? i think i may need to right a function but i'm having a hard time figuring out how to do this.
 
You could use an immediate if statement in the query design grid, like so:

yourcolumname: IIf([DateColumn]>#10/31/2002#,[othercolumn] * -1,[othercolumn])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top