Results 1 to 2 of 2
  1. #1
    linjoye is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3

    Printing Form

    I have two with the main being "Category" and the other "Category1". If I populate both forms it prints fine. The issue is when I populate the "Category" form only "Category1" still prints. Can any one help? Thanks..



    Private Sub Print_Click()
    On Error GoTo Err_Print_Click

    DoCmd.OpenReport "Category", acPrint, , "[PO#] = '" & [Forms]![Category]![PO Number] & "'"


    If DCount("[PO#]", "CATEGORY1", "[PO#] = '" & [Forms]![Category]![PO Number] & "'") > 0 Then

    DoCmd.OpenReport "Category1", acPrint, , "[PO#] = '" & [Forms]![Category]![PO Number] & "'"


    End If


    Exit_Print_Click:
    Exit Sub

    Err_Print_Click:
    MsgBox Err.Description
    Resume Exit_Print_Click
    End Sub

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    You report record source is suspect to me.

    I caution you not use special characters or spaces in object, field or control names. It will cause you a mountain on grief.

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

Similar Threads

  1. Printing report from Form
    By cotri in forum Access
    Replies: 8
    Last Post: 05-24-2013, 12:01 PM
  2. Printing form: image fails to update
    By stellar0645 in forum Forms
    Replies: 6
    Last Post: 02-04-2010, 11:41 AM
  3. Help with my printing
    By mattwill2001 in forum Queries
    Replies: 4
    Last Post: 08-17-2009, 01:55 AM
  4. Replies: 16
    Last Post: 06-03-2009, 07:01 AM
  5. Printing all tabs on one form
    By sshafer1 in forum Access
    Replies: 0
    Last Post: 12-06-2007, 07:47 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