Results 1 to 5 of 5
  1. #1
    vincentsp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    29

    Printing current record on a form with subform

    Hi All,

    I'm using a form with subform for my colleagues/employees to fill in their daily time sheets.


    The form displays employee names and the subform which is a multi entry form gives me the activities carried out that day together with the corresponding times.

    At this moment I'm using a query which asks me what time sheet to print by name and date.
    But I'm trying to find a way to print the current record / time sheet in my form directly.
    I found several topics handling this issue on this forum, but none of them working due to my multi entry subform.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What do you mean by 'multi-entry' - continuous or datasheet view?

    Should print a report, not the form.
    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
    vincentsp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    29
    Sorry for the confusion I meant continuous form.
    And I am trying to print a report. But only of the visable/active records on the form.

    At this moment I'm using a query which asks me what record to print based on date and employee.
    But I want to skip this step by being able to print the record thats visable/active on the (timesheet) form.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The selected record will be in the subform?

    Use the WHERE CONDITION argument of OpenReport. The syntax will depend on where the code is placed. If button on main form:

    DoCmd.OpenReport "report name", , , "ID=" & Me.subformcontainername!ID
    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
    vincentsp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    29
    Hi June7, sorry for the late reply but it took me a while to figure it out and get it working .
    But thanks again for your help!

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

Similar Threads

  1. Replies: 7
    Last Post: 02-18-2015, 12:07 PM
  2. Replies: 3
    Last Post: 04-23-2014, 12:19 PM
  3. Replies: 1
    Last Post: 05-31-2013, 11:02 AM
  4. Replies: 6
    Last Post: 05-18-2013, 12:48 AM
  5. Show only current record in report from form/subform
    By stelioshania in forum Reports
    Replies: 0
    Last Post: 03-02-2011, 02:19 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