Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Adding 2 tables via Query Design

Posted on 2011-09-16
4
295 Views
Last Modified: 2012-05-12
Hi there,

I am trying to add 2 tables via a query design.

The calculation in expression builder is this

LTL: [getOriginBeyond]![LTL] + [getDestinBeyond]![LTL]

Open in new window


The values on each of the above LTL sides is
16.1 and 14.36

The result I am getting in the results table is "16.114.36"

Hence this is being treated as a text addition

Since 'getOriginBeyond' data is being derived from another tabled called "ZONES", I went there and tried to change the 'Data Type' but it wouldn't let me change the data type :/

Any quick fixes to this?

Thanks!


0
Comment
Question by:Shanan212
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
Michael Vasilevsky earned 500 total points
ID: 36552411
LTL: Cdbl([getOriginBeyond]![LTL]) + Cdbl([getDestinBeyond]![LTL])

0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 36552412
If those are both currently text:

LTL: Val([getOriginBeyond]![LTL]) + Val([getDestinBeyond]![LTL])

Open in new window


0
 
LVL 10

Expert Comment

by:Michael Vasilevsky
ID: 36552414
Cdbl() converts the data in your field to the double (number) data type and they should add as expected then
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 36552423
wow! Nice! Thank you and have a great weekend!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question