Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you look at VBA help on OpenReport, you'll see the argument you can set to preview rather than print. The blank page can be caused by the report plus margins being wider than the paper, so that's the first thing I'd check.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thank you so much! Accessing the helpand using the preview fixed both the view (of course) and the extra blank page, as well.
    Now, the only problem I have is that it works for some of the organizations -- I get the report -- but for others, I get the blank form.
    Any thoughts there????

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    At a guess, same problem you had with the form: the name selected does not exist in the report's source.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    I double-checked that first -- and I just double-checked them now!!! It is called OrgName in both items. The odd thing is that some of them DO work. When I press the button (ButtonOpenOrgReport) I either get the report for that particular org, or I get a blank report that only has the report "background" and hard text. Any thoughts? Renewed thanks!

  5. #20
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Not the field name, the value. In other words, if you chose "ABC Company" to run the report on and that company didn't exist in the report's source data, you'd get a blank report. You had the same issue with the form where it was only coming up with the blank new record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #21
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thank you so much. I hate to be difficult, but the OrganizationsT, which houses all the organizations, has all of the entries, which is the main source data.

    In OrganizationsT, there are selection boxes for the type of organization (athletics, entrepreneurship), etc.
    In the YPsT, there are the same selection boxes for the interests of the young professional (athletics, entrepreneurship), etc.

    The report with the button (EngageAllYPRep) pulls from a query (EngageQAllMatches) which looks at both OrganizationsT and YPsT and matches a YP with an Org, provided they have one interest in common. The button on the EngageAllYPRep pulls a report (OrgReport) that simply carries the data for that particular organization, as a sort of handout or to see further details to determine if it really is a good match.

    In other words, all the data exists, because it's all pulled, ultimately, from two tables: OrganizationsT and YPsT.

    Sorry to be such a beginner, but I hope this is helpful, and I appreciate your help so much!

  7. #22
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #23
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thank you!

    Event.zip

    If you double-click on the report EngageAllYPRep, this will give you the buttons I speak of.
    The report they represent is a report called OrgReport.
    Everything is created from the query EngageQAllMatches.
    The query pulls from the tables OrganizationsT and YPsT.

    Many, many thanks!!! This is my first DB, and I really appreciate your help!

  9. #24
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sadly, I'll be the one being difficult.

    Open OrgReport in design view. Open the properties window to the data tab. Click on the ellipsis (...) to the right of the record source to open the query in design view. Run the query. As you can see, and confirming what I suspected, the only OrgName's available for that report are AIESEC and Alliance Credit Counseling Inc. Any other choice will return the blank report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #25
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Should have added that if I had to guess, you want to change the join between those tables so that all records from the organization table are returned.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #26
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thank you, Paul!

    It is now Access that's being difficult ... not it's fault, I guess, if I can't figure out how to modify this join!!! I've tried lots of things that seemed possible to me, but I just don't know enough.

    Here's the SQL language. I've tried a bunch of things, only to error out or get dialogs asking for info. Can you please suggest how to modify for the correct results?

    SELECT OrganizationsT.*, ContactsT.ContactFullName, ContactsT.PrimaryContact, ContactsT.PrimaryContactText, ContactsT.ContactPhone, ContactsT.ContactEmail, ContactsT.ContactAddress1, ContactsT.ContactAddress2, ContactsT.ContactCity, ContactsT.ContactState, ContactsT.ContactZip
    FROM OrganizationsT INNER JOIN ContactsT ON OrganizationsT.OrgName = ContactsT.ContactOrg

    Many thanks!!!

    --ak

  12. #27
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Change INNER to LEFT.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #28
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    OMG, thank you so much! I would havae been a moldin' in the cold, cold ground long before I would have arrived at that!

  14. #29
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    LOL! You can also change the join in design view by right-clicking on the join line. You'll get a better description of what it's doing there.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. What am I doing wrong? Printing a single report
    By sofarfromexpert in forum Reports
    Replies: 1
    Last Post: 07-15-2012, 07:33 PM
  2. Replies: 0
    Last Post: 05-25-2011, 06:13 AM
  3. Printing a single Report from two forms
    By cvolkers in forum Programming
    Replies: 4
    Last Post: 03-06-2011, 11:27 PM
  4. How to print a single Record's report?
    By yes sir in forum Access
    Replies: 7
    Last Post: 09-20-2010, 07:31 AM
  5. Printing a single report from form
    By OFA in forum Forms
    Replies: 9
    Last Post: 06-08-2010, 09:27 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