Results 1 to 3 of 3
  1. #1
    koncreat is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2015
    Location
    U.S.
    Posts
    43

    Error trying to print


    I created a button on the Invoices form and it should show a print preview of the current record. However i am getting an error when i try.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    your invoice# are strings so put delimiters in the code:

    DoCmd.OpenReport "r_invoices", acViewPreview, , "[invoice]='" & Me.invoice & "'"

    had the field been numeric, your code would have worked.

  3. #3
    koncreat is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2015
    Location
    U.S.
    Posts
    43
    That did it! Thanks!

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

Similar Threads

  1. print report error
    By Jen0dorf in forum Access
    Replies: 2
    Last Post: 07-02-2016, 04:42 AM
  2. Replies: 5
    Last Post: 07-29-2014, 01:05 PM
  3. Print Error
    By Marianna_Air in forum Reports
    Replies: 5
    Last Post: 08-10-2012, 01:46 PM
  4. Print Preview Margins error
    By yes sir in forum Access
    Replies: 2
    Last Post: 09-15-2010, 05:52 PM
  5. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 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