Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Adding two tables via expression builder

Posted on 2011-09-08
4
Medium Priority
?
194 Views
Last Modified: 2012-05-12
Hello,

I am using expression builder because I have VBA coding which calls a query. Since my VBA is already complecated, I am trying to do certain things in expression builder.

I have (maximum) of 3 additions to be done. These are based on 2 tables.

I have to get 1 set of values from one table and 2 sets of values from another tables.
The 1st set I mentioned above is based on a 'combination' of City & Province  [eg: TorontoOntario] which has associated values
The 2nd set I mentioned above has  2 sets of criteria but both sets are located in 1 table. One for City (which has associated values) another for Province (which has associated values)

Now all these 'associated values' are same (in terms of naming) They are

MIN, MAX, 1M, 2M, 3M...and these are numbers

I want to output the combined sum of MIN on one column by

Geting the relative 'MIN value' from Combo table..lets call this table1
Getting the relative 'MIN value' from City column from  table2
Getting the relative 'MIN value' from  province column from table 2

Bah I just confused myself :( Anyway back to the matter

So I want to filter out table one using 'TorontoOntario' and take the MIN value, filter out table2 using 'Toronto' and get that 'MIN' value and filter out table2 for 'Ontario' and get that MIN value as well and add it

Then repeat this for other values such as 'MAX, 1M, 2M'

I really need advice on this as I am really confused on how to do it. What is the best way to do it?

Any directions is much appreciated!

Sort of something like this (http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21525168.html?sfQueryTermInfo=1+10+30+ad+express+tabl+two)

 but with 3 tables based on 3 diff criterias BUT being done in expression builder. If someone has better advice, please do. I am capable of self learning but any start up is much appreicated!

Regards,
Shanan
0
Comment
Question by:Shanan212
[X]
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
  • 2
4 Comments
 
LVL 40

Expert Comment

by:als315
ID: 36508130
May be you can upload DB with your tables and show expected result?
0
 
LVL 48

Expert Comment

by:Dale Fye
ID: 36510657
Or as a minimum, provide a couple of examples of the data any your desired output.
0
 
LVL 13

Accepted Solution

by:
Shanan212 earned 0 total points
ID: 36511239
Hi, this problem was solved.

What I did is, created multiple queries based on filtering...called them via VBA. The queries itself would have additions.

In this way, I was able to utilize the queries for multiple set of datas! Thanks!
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 36553572
Closed
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

670 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