Results 1 to 5 of 5
  1. #1
    ashraf.arafat is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2016
    Posts
    3

    Talking How to make an Inputbox for report ?

    Hi


    How to make an Inputbox when open report , put the value or the word in inputbox and the report display records according to the value or word which i put in input box????

    Example:
    I have one Table :
    Car Corp - Car Model
    Toyota - Corolla
    Toyota - Prius
    Nissan - Sunny
    Nissan - Altima

    I want make a report so when i write Toyota in inputbox then gives me the records :
    Toyota - Corolla
    Toyota - Prius

    And when i write Nissan in inputbox then gives me the records :

    Nissan - Sunny
    Nissan - Altima

    Thanks

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    use a parameter in your query

    SELECT *
    FROM tblCars
    WHERE manufacturer=[Enter Manufactuterer]

  3. #3
    ashraf.arafat is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2016
    Posts
    3

    Red face

    Sorry I don't understand
    Can you make it to my example file in attachments please ???
    Thanks
    Example.accdbExample.accdb

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    all you have is a table so all I can provide is a query

    1.open a new query
    2.close the 'Show Table' window
    3.click on the sql option top left on the ribbon
    4.delete whatever code is there
    5.and then copy and paste this code

    Code:
    SELECT *
    FROM Table1
    WHERE [Car Brand]=[Enter Brand]
    in its place

    6. click on the run (!) option in the ribbon

  5. #5
    ashraf.arafat is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2016
    Posts
    3
    It works
    Thank You

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

Similar Threads

  1. Inputbox
    By mladen273 in forum Programming
    Replies: 8
    Last Post: 12-29-2012, 05:32 AM
  2. inputbox that accepts numbers
    By bbrazeau in forum Forms
    Replies: 2
    Last Post: 11-01-2011, 06:08 AM
  3. Type mismatch from InputBox
    By sephiroth2906 in forum Programming
    Replies: 2
    Last Post: 09-15-2011, 06:59 AM
  4. Inputbox on programming? :(
    By radicrains in forum Programming
    Replies: 7
    Last Post: 11-05-2010, 10:58 PM
  5. Query & InputBox
    By RemusRigo in forum Queries
    Replies: 1
    Last Post: 03-25-2009, 08:21 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