Results 1 to 9 of 9
  1. #1
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171

    Keyed input in a report

    How can I key in a data field used to launch a query and display the query rsults in the report?

  2. #2
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    what do you mean by 'key in a data field' ? Like a criteria search?

    If so, what criteria?

  3. #3
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    My objective is to manually key in a badge number in the report that will be used as criteria in the query then the query results will be displayed in the report. I have used this by entering the badge number in a form then calling the query and the report. Can I do this all in the form?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I usually open or export reports from forms.

  5. #5
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    When I launch the reprt from the form The report immediately prints. I have a button on the report to print or exit if hard copy is not desired. I do not even get the usual Access print option screen.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Controls used to enter search criteria must be UNBOUND. Reference the control as filter criteria when opening report. Specify report mode in the OpenReport method.

    DoCmd.OpenReport "report name", acViewPreview, , "BadgeNum=" & Me.textboxname

    Review: http://www.allenbrowne.com/ser-62.html
    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.

  7. #7
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Sometimes it does this to me as well, you have to specify report view/print preview in the code behind the button or it typically auto-prints for me.
    DoCmd.OpenReport, "rptName", acViewReport
    or acViewPreview (will not print will just be in print preview).

  8. #8
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    I will give this a shot and let you know.

    Thanks

  9. #9
    WAVP375 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Dayton Ohio
    Posts
    171
    Thanks, Resolved

    Another issue; A report that has name repeated on many lines of the report I have selected the 'Hide Duplicate' option. When the report prints it is exactly what I want, however when the report displays and the print option message comes up no name are displayed. I assume I have missed a setting somewhere. Thanks

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

Similar Threads

  1. Replies: 3
    Last Post: 05-16-2013, 08:21 PM
  2. Report Using Input on Form
    By andresdm in forum Reports
    Replies: 3
    Last Post: 03-26-2013, 10:01 AM
  3. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  4. Input parameter in report header
    By geremore in forum Programming
    Replies: 3
    Last Post: 08-08-2011, 01:41 PM
  5. How to query using a foreign-keyed name
    By david28 in forum Queries
    Replies: 0
    Last Post: 10-17-2009, 12:57 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