Results 1 to 6 of 6
  1. #1
    Holli is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    46

    Users Printing Individual Report From Data Entry Form Submit Button

    Need some help.


    I have been asked to give users the option of printing their individual report. I built a form for data entry (survey questionnaire) in Access 2010. The form contains a submit button that saves to the reports. Now they need to be able to print their individual report from the Form submit button. Not sure the best way to do that, any help would be greatly appreciated Thanks!

    This is my current code.

    Private Sub SUBMIT_Click()
    RunCommand acCmdSaveRecord
    Me.Requery
    DoCmd.Close
    MsgBox "Thank you for your participation. Please complete your Department Survey and any Department Survey you may have a skill set in."
    End IF
    End Sub



    Holli

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Something like:

    If MsgBox("Do you want to print report?", vbYesNo) = vbYes Then DoCmd.OpenReport "report name", , , "ID=" & Me.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.

  3. #3
    Holli is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    46
    Yes. Will that automatically print their individual report if the they select yes.

    Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Direct to printer is default. You can specify otherwise with arguments.

    DoCmd.OpenReport "report name", acViewPreview , , "ID=" & Me.ID

    I don't know your report name nor the unique identifier field. Adjust code as appropriate.
    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
    Holli is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    46
    My Report Name is Career Path Assessment and the unique identifier field is EmployeeID

    Thanks June 7

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Did you try code? Issue resolved?
    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: 3
    Last Post: 12-29-2014, 01:04 PM
  2. Replies: 4
    Last Post: 09-07-2014, 11:41 AM
  3. Replies: 1
    Last Post: 05-12-2012, 11:38 AM
  4. Submit Button In Form
    By smarty84handsome in forum Forms
    Replies: 3
    Last Post: 01-12-2012, 11:17 PM
  5. Submit button in access form
    By Melo in forum Forms
    Replies: 2
    Last Post: 09-25-2010, 08:37 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