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

Is there a find statement in coding?

Status
Not open for further replies.

zrazzaq

MIS
Apr 13, 2005
102
US
Hi:
Basically I need a function that would find a decimal and increase it or decrease the number. For example,
0.753
I would need two numbers 0.75 and .076 so I can do this one query... I have no idea how to do this...
Thanks
Zishan
 
I'm assuming you are getting your decimal value from a table...

Code:
SELECT Round([YourTable]![YourDecimalField], 2) AS Expr1, Round([YourTable]![YourDecimalField], 2) + 0.01 AS Expr2, Round([YourTable]![YourDecimalField], 2) - 0.01 AS Expr3
FROM YourTable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top