Results 1 to 10 of 10
  1. #1
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31

    how would somebody go about pulling data from a combo box to put it on the title of a report


    Sales Examples.zipin the attached document there is a form called Buyer Names, on it is a drop down list that almost does everything I need it to do, so far it should update all buyer names queries and then open the buyer names report, I need it to also put the name selected at the top of the report and open the subreports, the rest should be functional but I pieced it together with little knowledge so any help would be appreciated.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if the combo is bound to query: qsMyData.
    then open query qsMyData

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    What version of Access are you using.?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31
    I have got the name working and the part where the subforms load, now I just need to know if it would be possible to put the combo box on the report that is summerizing everything. Also I need to figure out how to add up numbers from the list and have those numbers on the bottom of the last page, including the sub forms, and they need to then be able to work with each other for example, I need to add up all the purchases, then add all the payments, then subtract the payment total so I get how much is owed, I also need to have a total number of each item purchased and how many of them the

  5. #5
    xps35's Avatar
    xps35 is online now Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Try [forms]![Buyer Names]![BuyerNames] (with [ ]).

  6. #6
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31
    I believe it is 365, its just what downloaded when I got 365

  7. #7
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31
    oddly enough litteraly after saving and reloading the document the whole name is the selected from list thing works perfectly

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    Sorry to say but your design is all wrong.

    The Joins between all related tables are showing as "Indeterminate"

    You should have an Autonumber PK in every table and in all related tables you should have a FK with a DataType of LongInteger
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  9. #9
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31
    Ya, I'm fairly new to access, and truth be told I've got no idea what I'm doing, how would I go about doing that and what would it solve?

  10. #10
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    truth be told I've got no idea what I'm doing
    Then may I recommend some homework?

    Normalization Parts I, II, III, IV, and V
    http://rogersaccessblog.blogspot.com...on-part-i.html
    and/or
    http://holowczak.com/database-normalization/

    Entity-Relationship Diagramming: Part I, II, III and IV
    http://rogersaccessblog.blogspot.com...ng-part-i.html

    How do I Create an Application in Microsoft Access?
    http://rogersaccessblog.blogspot.com...cation-in.html

    Important for success:
    Naming conventions
    http://access.mvps.org/access/general/gen0012.htm
    https://www.access-programmers.co.uk...d.php?t=225837

    What not to use in names
    - http://allenbrowne.com/AppIssueBadWord.html

    About Auto Numbers
    - http://access.mvps.org/access/general/gen0025.htm

    The evils of lookup fields - http://access.mvps.org/access/lookupfields.htm
    Table and PK design tips - http://www.fmsinc.com/free/newtips/primarykey.asp
    About calculated table fields - http://allenbrowne.com/casu-14.html
    About Multi Value Fields - http://www.mendipdatasystems.co.uk/m...594468763.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Report pulling in data 3 times
    By NanciW in forum Reports
    Replies: 1
    Last Post: 04-13-2018, 03:25 PM
  2. Report not pulling data correctly
    By haV3rhill in forum Access
    Replies: 7
    Last Post: 01-26-2018, 02:13 PM
  3. Report not pulling in all data
    By bennyamy in forum Access
    Replies: 6
    Last Post: 03-06-2017, 10:30 AM
  4. Replies: 5
    Last Post: 08-03-2016, 04:36 AM
  5. Replies: 5
    Last Post: 12-27-2012, 02:54 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