Results 1 to 3 of 3
  1. #1
    ExcelleradRob is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    1

    Unhappy Expressions between two tables

    I am new to Access and have been teaching myself. I currently have two tables with multiple columns of data. Each table has one particular criteria I would need to search for and three or four other corresponding fields that I need to do calculations with. I am attempting to create a macro/form/something? to be able to enter in a patient ZIP code and treatment code (CPT), items that are in two different tables. Once those variables are provided, I want the program to find the matching ZIP or CPT code in the respective tables and provide corresponding data which will then be used in an expression to calculate a reimbursement fee. Below is the formula I will need to calculate. All field names are the same as what you see in the formula.

    Reimbursement (no field yet) = [(Wrvu*Wgpci)+(PErvu*PEgpci)+(MPrvu*MPgpci)]*CF

    In one table, a specific zip code corresponds to Wgpci, PEgpci and MPgpci

    In a second table, a specific CPT code corresponds to Wrvu, PErvu, MPrvu and CF. There are also two modifying components for each CPT code so basically each CPT is shown 3 times in each table.

    There are some additional fields which correspond to either CPT or ZIP (in respective tables) and they are not relevant or necessary. I copied these tables from two excel spreadsheets from a US government healthcare website. Click image for larger version. 

Name:	table1.JPG 
Views:	7 
Size:	65.1 KB 
ID:	9291Click image for larger version. 

Name:	table2.JPG 
Views:	7 
Size:	60.8 KB 
ID:	9292

    I would appreciate any insight from the folks on here. It would seem like this should be something Access could do, I just don't know how to do it. I have played around with Forms, Expressions, Queries and Macros and I am still clueless. I have attached a few screen shots of what I have set up since the layout may be hard to understand from my explanation.



    Thank you in advance for any input you may have.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Are the two tables related? If so, what field?

    In a second table, a specific CPT code corresponds to Wrvu, PErvu, MPrvu and CF. There are also two modifying components for each CPT code so basically each CPT is shown 3 times in each table.
    If there are three records, how do you decide which record to use to do the calculations?

    You could open two recordsets and get the values from the recordsets to do the calculations..... but 3 CPT records????

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    You have a table for PatientInfo with ZIP code? You have another table to save record with CPT and PatientID (a 'junction' table)?

    Try building query that joins PatientInfo and [CPT RVU Values] to CPT_PatientID junction table and [GPCI by ZIP] to PatientInfo.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. implement expressions
    By quandore in forum Access
    Replies: 7
    Last Post: 01-11-2012, 03:48 AM
  2. Repeat Expressions
    By welshmpf in forum Access
    Replies: 8
    Last Post: 09-06-2011, 09:41 AM
  3. Query Expressions
    By Andrea in forum Queries
    Replies: 6
    Last Post: 03-03-2011, 03:57 PM
  4. Nested If Expressions
    By Lynn in forum Forms
    Replies: 5
    Last Post: 03-25-2010, 10:11 AM
  5. Conditions / Expressions
    By Mark344 in forum Access
    Replies: 1
    Last Post: 02-19-2010, 08:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums