Results 1 to 4 of 4
  1. #1
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Parameter Prompt When Accessing Report

    Dear,
    Forum

    I am prompted to enter tblMaster1 in the parameter when I open rptMaster.

    I cant figure out why is it happening.

    Can somebody please help me?

    Attachment 32031

    TIA

    Haziq
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Something weird with the CurrentQty textbox. I deleted it then created a new textbox and set its ControlSource. No more prompt.
    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.

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,001
    You are creating Master1 when you simply need the query to link the two tables together as the record source for your report.

    Also instead of prompting the User for the values in that report, use the form it is called from current record;
    Code:
    SELECT tblMaster1.MasterIDPK, tblMaster1.Subsystem, tblMaster1.Item, tblMaster1.Location, tblMaster1.CurrentQty 
    FROM tblMaster1 
    WHERE (((tblMaster1.Subsystem)=forms!frmMaster!Subsystem) And ((tblMaster1.Location)=Forms!frmMaster!Location));
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Dear,
    June7


    [Qoute]Something weird with the CurrentQty textbox.[/Quote]
    I set a faulty conditional formatting expression.
    It has been solved in one of my threads.

    Thanks for debugging it for me.
    Much appreciated


    use Form to get parameters for report
    I will need to change my code to hold 2 inputs maybe cascading.
    I do not know how to change the code.

    TIA

    Haziq
    (I promise I am trying)

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

Similar Threads

  1. Replies: 2
    Last Post: 03-12-2014, 11:14 AM
  2. Replies: 14
    Last Post: 01-17-2013, 02:43 PM
  3. Query parameter prompt - Format message
    By daved292 in forum Queries
    Replies: 2
    Last Post: 06-08-2012, 11:09 AM
  4. Report Parameter Prompt
    By leamas in forum Access
    Replies: 7
    Last Post: 05-31-2012, 02:07 PM
  5. Get parameter prompt
    By yawalias in forum Queries
    Replies: 1
    Last Post: 12-22-2011, 09:25 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