Results 1 to 3 of 3
  1. #1
    sotssax is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    20

    Print Button on a Navigation Form

    I have a navigation form with an employee info form as one of the tabs. The Employee Info form has a combo box used as a record lookup. It also has a print button that will print the current record after looking it up. My problem is that the print button works just fine if the Employee Info from is opened directly but it will print the first record only if the form is open as part of the navigation form. Any ideas why this is happening?

    By the way, I am now using Access 2010.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Can you attach a sample of your database, just make a copy of your database and remove any privacy information. I suspect your report is set to use the current record as the data source for a report but if you don't have the form open it's just choosing the first but I wouldn't be able to tell you without a sample.

  3. #3
    sotssax is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    20
    I have not had time to make a sample, but here is the button event procedure. I'm not sure if this would help.

    Private Sub printbtn_Click()
    On Error GoTo Err_printbtn_Click

    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.PrintOut acSelection
    Exit_printbtn_Click:
    Exit Sub
    Err_printbtn_Click:
    MsgBox Err.Description
    Resume Exit_printbtn_Click

    End Sub

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

Similar Threads

  1. Replies: 16
    Last Post: 06-21-2011, 09:08 AM
  2. Print Button
    By Meccer in forum Access
    Replies: 1
    Last Post: 03-15-2011, 07:31 AM
  3. Replies: 0
    Last Post: 02-22-2011, 05:04 AM
  4. Replies: 10
    Last Post: 12-31-2010, 12:35 PM
  5. Replies: 3
    Last Post: 10-18-2009, 09:17 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