Results 1 to 7 of 7
  1. #1
    italianfinancier is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    25

    Angry How Do I Make Access Use User-Entered Customer Number for Parameter


    I built a database and the user enters a customer number and a report generates for that customer. The issue I have is that after the user enters the customer number, Access displays a parameter request for the text box on the Form the user enters the customer number in/on. (Please see pictures attached.) How do I get it setup so that the user doesn't have to enter the customer number twice? In other words, so that the parameter dialog box doesn't appear?

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    What is the code behind the command button?
    What is the SQL statement for the query? Or is it part of your VBA code for the command button?
    Need to see these to diagnose what is really happening. Not enough information provided here.

    Alan

  3. #3
    italianfinancier is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    25
    Attached is the macro behind my button (top half of Word document) and an example of one "programming" of the queries running to populate this report.

    Thanks!

  4. #4
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    A quick thought...

    If your report is based on the query at the bottom of the word doc you posted, try deleting the where condition (=[Text4]) in the macro. I don't think you need it because the query for the report has the criteria already established.

    All the best,

    Jim

  5. #5
    italianfinancier is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    25
    That made nothing happen when I clicked the button...no query run, no report generation, etc.

  6. #6
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    italianfinancier -

    Can you please post the entire macro, as it is now, that runs when the button is clicked?

    Thanks,

    Jim

  7. #7
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I don't use macros in any of my db--only VBA. If you want to convert your macro to VBA, use the convert function on the ribbon. I would then be happy to help diagnose the issue.

    BTW; did you use the wizard when you created the command button?

    Alan

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

Similar Threads

  1. Replies: 4
    Last Post: 06-08-2011, 04:30 PM
  2. Replies: 5
    Last Post: 12-26-2010, 10:56 PM
  3. User entered filename for ExportXML?
    By nhabegger in forum Import/Export Data
    Replies: 1
    Last Post: 10-08-2010, 08:54 PM
  4. Make auto number
    By sanos_a in forum Access
    Replies: 9
    Last Post: 10-07-2010, 06:14 AM
  5. Replies: 5
    Last Post: 08-05-2009, 12:13 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