Results 1 to 13 of 13
  1. #1
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18

    Access Report Help

    We created a report based off of other reports. Because of this access keeps asking us to input the employee id. We were wondering if anyone knew of any way to eliminate some of these pop ups. I can not attach the report because the file is to large.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    How do you create report based off of ther reports - subreports?

    If you want to provide db for analysis, follow instructions at bottom of my post. If still too large, upload to fileshare site such as box.com and post link to the file.
    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
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    Here is the file zipped. The report we based off of other reports is called Test_Employee. The Employee ID we have been using is 1 to test the database. Thank you for your suggestion to zip the file.
    Attached Files Attached Files

  4. #4
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    i am assuming u r basing ur reports off an employeeID. use a unbound textbox on the form where u r triggering the report. textbox property.visible.no
    set the id in this textbox and reference your report on the textbox.
    soemtimes that is not an option as u r too ahead in ur design and to do this would be more of a pain in the rear. make a copy of ur db, remove most of the data, compact the db, zip it, post, we can take a look. what u attached is a windows shortcut i am assuming, from the file size...

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    Did not provide database. The file would be .mdb or .accdb, not .lnk extension.
    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.

  6. #6
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    Are you able to open it now?
    Attached Files Attached Files

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    I looked at the report called Test_Report which has multiple subreports. What you need to do:

    1. include EmployeeID in the RecordSource for the main report

    2. remove the EmployeeID criteria parameter from the subreport queries - could just bind the subreports to tables, queries aren't really needed if no filter/sort criteria are used

    3. set the Master/Child links properties of each subreport container control

    4. add textboxes in the Detail section bound to fields of the main report RecordSource

    I think your data structure could be simplified by combining some tables. For example the 'Service to ...' tables could be one table by adding another field for the service type (Community, School, University, Profession).

    What's the difference between data in tables 'Professional Certifications' and 'Professional Development Certificates'?

    Advise no spaces, special characters, punctuation (underscore is exception) in names.

    'Dates' fields are set as text instead of date/time type.
    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.

  8. #8
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    Can you please explain to me a little more how to go about steps 3 and 4. setting the Master/Child links properties of each subreport container control and adding textboxes in the Detail section bound to fields of the main report RecordSource.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    3. Select the subform container control. The Master/Child links properties are on Data tab of Property Sheet dialog. Double click the ellipses (...), set the links to pk/fk fields.

    4. Drag textbox control to main report Detail section, set ControlSource property.
    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.

  10. #10
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    We did what you said previously but now its asking us to input the employee id 2 times. I attached a zipped file with the database if you can see what I mean. Also,say someone has does not have any professional experience how do we get that part of the report to not show up when we run it.
    Attached Files Attached Files

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    The two prompts are because the main report and a subreport are both bound to Test_Employee query. Remove the subreport (the first one in Detail section). Put textboxes bound to fields of the main report in place of the subreport.

    Not showing a subreport when there is no data requires code. However, even if the subreport is not visible, blank space will be left in its place because even though not visible the subreport control still occupies space on the report.
    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.

  12. #12
    chibearsfan6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    So what would be the best and easiest way to set it up so unused information would not be visiable.

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    Google: Access subreport has no data

    Review:

    If you don't even want a label for the subreport when there is no data, size the subreport as small as possible, maybe even use code in the main report Detail format event to set subreport container control height property to 0.
    http://www.access-programmers.co.uk/...d.php?t=212478

    If you still want a label with a textbox that says "No Data".
    http://www.tek-tips.com/viewthread.cfm?qid=1529666
    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. Replies: 1
    Last Post: 03-26-2012, 03:01 PM
  2. how to generate this simple report in report ms access
    By learning_graccess in forum Reports
    Replies: 1
    Last Post: 11-26-2011, 02:10 PM
  3. Replies: 4
    Last Post: 12-13-2010, 05:33 PM
  4. Replies: 2
    Last Post: 08-25-2010, 01:42 PM
  5. Replies: 3
    Last Post: 05-21-2010, 03:57 PM

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