Results 1 to 3 of 3
  1. #1
    donsi is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    16

    "Enter Parameter Value" dialog box appears when you run a form

    I am self-thought and beginner for access, and VBA. Database I'm creating has 2 forms and both built on same query, one of which will be used by users to enter data and other to pull report from the same query. I based criteria on my query on the 2nd form to filter data on the report. Now the problem is that ever time the first form is run, I get dialog box requiring users to enter parameters which is not necessary for data input. How can I get around that? Do I need to create another query for the report?




    Thank you all.


    Criteria in query: [forms]![FrmRptGrpLog]![txtStartDt] And [Forms]![FrmRptGrpLog]![TxtEndDt]


    VBA for 2nd form to run the report


    Code:
    Private Sub CmdGrpRpt_Click()
        DoCmd.SetWarnings Flase
        Me.txtStartDt.SetFocus
        DoCmd.OpenQuery ("QryGroupLog")
        DoCmd.OpenReport ("RptGroupLog"), acViewPreview
        DoCmd.Close acForm, "frmrptGrpLog"
        DoCmd.SetWarnings True
    
    
    End Sub
    Click image for larger version. 

Name:	accform.PNG 
Views:	6 
Size:	7.4 KB 
ID:	25666

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You've got the Query for the Report...you need a Query that doesn't require parameters, for the data entry Form! Copy the old Query and leave off the part requiring the parameters!

    Please, when double-posting, such as here

    http://www.access-programmers.co.uk/...d.php?t=289053

    to let people know this, so we don't waste time giving duplicate advice!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    donsi is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    16
    Thank you. I deleted post from other forum.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-06-2016, 11:43 AM
  2. Replies: 5
    Last Post: 06-24-2015, 11:46 AM
  3. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  4. Replies: 8
    Last Post: 07-15-2014, 05:56 PM
  5. Form "Enter Parameter Value" Pop-Up
    By wes9659 in forum Access
    Replies: 2
    Last Post: 04-20-2014, 09:24 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