Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,525

    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    Just ran into another problem - I tried this on one form/subform group and it works flawlessly. I copied the report to use on another form/subform group and it doesnt. It will bring up the report fine if no filters are selected, but when you try to select filters and create the report it always promts you to enter a parameter value for what you had in your filter. Here is my code for the button that creates the report...

    Private Sub print_unbound_Click()
    DoCmd.OpenReport "tbl_Lots", acViewPreview, , Forms!frm_Parts_Dataview_Unbound.frm_Parts_Spreads heet_Unbound.Form.Filter
    End Sub

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,525
    The parameter prompt is Access telling you it can't find something. What does the prompt say exactly? Are all the fields in the filter present in the report?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    the prompt says "frm_Parts_Spreadsheet_Unbound.ChipNumber" and has an input field, an ok button and a cancel button. The report does have a ChipNumber field, which is labeled the same as it is in the subform, which is what I dont understand

  5. #20
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,525
    Add this line before that one:

    Debug.Print Forms!frm_Parts_Dataview_Unbound.frm_Parts_Spreads heet_Unbound.Form.Filter

    and see what the filter looks like. More here if you're unfamiliar:

    BaldyWeb-Immediate window
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using VBA to print a report based off day of week
    By jo15765 in forum Programming
    Replies: 1
    Last Post: 10-21-2013, 02:10 PM
  2. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  3. Replies: 1
    Last Post: 01-24-2013, 12:52 AM
  4. Replies: 1
    Last Post: 12-09-2012, 05:27 PM
  5. Need Help Creating Report Based on User Entry
    By italianfinancier in forum Programming
    Replies: 17
    Last Post: 05-27-2011, 04:58 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