Results 1 to 5 of 5
  1. #1
    Charlieboy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    3

    Looking Up Data from a Query based on Combobox selection

    Hi



    I am busy tryong to learn how to use access and am creating a simple Database based on invoice for a garden service. I am no where complete and am trying to understand ways of doing things.

    I currently have created a query that subtotals the lines per invoice, I have then created a form to process to the payment table, I have a combo box selecting the customer ID and the Invoice ID, I am trying to get a text box to populate the total from the subtotal query for that spoecific Invoice ID and have tried everything with no luck

    can anybody please assist.

    Charlie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    A basic principle of relational database is 'enter raw data, do calcs in reports'. It is poor design to save 'running sum' (aggregate) calculated data and is a path of endless frustration. Why would you save an invoice amount to payment table? Payment table should record customer payment (amount, payment type, reference such as check no./cash/credit card).
    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
    Charlieboy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    3
    I am not trying to Save the invoice value to the table, I merely wanted it as a view on the form so that when posting a payment one would see what the actual value of the Inovice was, I wanted it more for reference than an actual post to the payment table.

    I am learning as I go, and trying to build according to what I would like to see.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You did say 'process to the payment table' so that gave me to believe you wanted to save calculated value. If all you want to do is display the total on a form, that can be tricky. Forms are really intended as a data entry interface, not to report back summary info 'on-the-fly'. I don't know enough about your project structure to be specific. Do you want to provide it for analysis?
    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.

  5. #5
    Charlieboy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    3
    I will Attache a copy of my DB, its a real mess, as I am using it to learn and mess about in before I attempt to create a final, so it might seem overcomplicated

    Cheers

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

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Query based on ComboBox selection
    By pmac in forum Queries
    Replies: 9
    Last Post: 07-27-2011, 07:03 AM
  3. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  4. Replies: 0
    Last Post: 12-16-2009, 01:14 PM
  5. Replies: 0
    Last Post: 04-17-2008, 09:24 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