Results 1 to 4 of 4
  1. #1
    PaintTheMoonRed is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    5

    How to get two pieces of selected data in a form to output a certain number?

    I've been working on creating a database for a Physical Therapist that will store patients information and information on past appointments (including the amount of money paid per appointment). I created a form that he can then easily select the patient and their D.O.B. and insurance carrier will show up. But I need to create a way that when he then selects the treatment received for the appointment that the correct payment amount will show up and be recorded as well. The reason this is an issue is because for each insurance there is a different cost per treatment.


    I was wondering if this was possible and if so how to do it.
    Thanks in advance for any replies.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You would need a table of treatments and costs for each insurance. This means multiple records for each treatment.

    tblCosts
    InsuranceID
    TreatmentID
    Cost
    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.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    It's certainly possible, but the only way Access can fill in the amount is if you tell it how. Offhand I'm thinking a many-to-many junction table joining tables I presume exist for treatments and insurance carriers. That table would have records for each treatment/insurance combination and have a field for price.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Apparently June7 and I had the same idea, I just type slower.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 03-18-2013, 03:03 PM
  2. Date\Time\Scheduler Pieces 3
    By Cybercow in forum Code Repository
    Replies: 1
    Last Post: 11-22-2012, 05:20 PM
  3. Replies: 1
    Last Post: 02-19-2012, 06:29 PM
  4. Export selected data from form
    By siedne in forum Forms
    Replies: 1
    Last Post: 12-01-2011, 05:48 PM
  5. Form output data manipulation
    By bearsgone in forum Forms
    Replies: 1
    Last Post: 04-05-2011, 04:21 PM

Tags for this Thread

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