473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Trying to run expression for rounding???

matrekz42
Good afternoon gents,

I'm trying to capture a dollar amt for a specific table running a link from another
table.

So I have the first [action_amt] and the second [action_amt], and I'm trying to capture all the payments from the first action [action_amt] that >= the second [action_amt], however there are some [action_amt] from the first table that have 2 digits, therefore the expression won't capture it. What can I do?

Example: first action_amt = $25.34 and second amt is $25.00, I miss that $25.00 payment for only a couple of cents.

All your help is greatly appreciated.
Jan 14 '08 #1
3 1111
FishVal
2,653 Expert 2GB
Hi, matrekz.

I guess you are talking about table join. And so far you have something like
Expand|Select|Wrap|Line Numbers
  1. SELECT ..... FORM t1 INNER JOIN t2 ON t1.[action_amt] = t2.[action.amt];
  2.  
I guess you mean - consider two values to be equal if differense between them is less than some threshold level (0.5 in the following example).
Expand|Select|Wrap|Line Numbers
  1. SELECT ..... FORM t1 INNER JOIN t2 ON Abs(t1.[action_amt]-t2.[action.amt]) < 0.5;
  2.  
Regards,
Fish
Jan 15 '08 #2
Worked out, thanks a million!
Jan 15 '08 #3
FishVal
2,653 Expert 2GB
Not a problem.
Good luck.
Jan 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: cj | last post by:
Lets assume all calculations are done with decimal data types so things are as precise as possible. When it comes to the final rounding to cut a check to pay dividends for example in VB rounding...
206
by: md | last post by:
Hi Does any body know, how to round a double value with a specific number of digits after the decimal points? A function like this: RoundMyDouble (double &value, short numberOfPrecisions) ...
248
by: md | last post by:
Hi Does any body know, how to round a double value with a specific number of digits after the decimal points? A function like this: RoundMyDouble (double &value, short numberOfPrecisions) ...
20
by: jacob navia | last post by:
Hi "How can I round a number to x decimal places" ? This question keeps appearing. I would propose the following solution #include <float.h> #include <math.h>
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.