Results 1 to 6 of 6
  1. #1
    adrisoares is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    3

    Filtering by buttons


    Created a database for U-Bolts. The columns that shall be filtered are "Type", "Diameter", "Height" and "Opening". Created a form and to narrow the items to be shown I placed a Slide with drawings of the diferent types of U-Bolts. On top of that slide and on each drawing I placed a transparent Command Button. By pressing each of the buttons I want the database to be filtered to the chosen "Type", "Diameter" in ascending order, "Height" in ascending order and "Opening" in ascending order. Will anyone tell me what the comand code should look like. TIA . Adriano - Portugal

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    The form RowSource can be a query that has ORDER BY clause or can set those sort criteria in the OrderBy property of the form.

    Here is one method to filter the form http://datapigtechnologies.com/flash...tomfilter.html

    What is a 'Slide'?
    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
    adrisoares is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    3
    [QUOTE=What is a 'Slide'?[/QUOTE]

    A Slide is a foto *.jpeg
    It can be seen on left down of the Form I attach here.

    I can't use a query. The "slide" of the different types is already defined. The right photo is an attachement that will depend on the type , in this case "A1" as shown on the top right. At the moment if I scroll down by the Item Code (Código) it will show every Item from every type. I can use the toolbar to select the type I want, but I want to make the "grouping" using a command button.
    Attached Thumbnails Attached Thumbnails UBolt.jpg  

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    What do you mean - 'can't use a query'? If you want to 'filter' then a query is involved. What do you mean by 'scroll down'? I don't see scroll bars or comboboxes.

    How is the large image on the right generated? Is this with an Image control? Are these images embedded in an attachment field in table? If you want to provide db for analysis, follow instructions at bottom of my post.

    I just don't understand what behavior you want form to accomplish.
    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.

  5. #5
    adrisoares is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    3
    By Scroll down I mean I can place the mouse cursor in one of the text boxes and with Keys PgDn and PgUp go to next values. Those images on the right are images embedded in an attach. field on the table. I can use the tool FIND on the toolbar to find a value for consultation. This database and form will be "lent" to some major customers and they can look for example for a type S1 and then a rod diameter 20 and so one. By clicking on the transparent buttons already on the picture of types on the left side I want only the items within a certain type to be shawn. If I chose Type R1, I will only have access to all the items in that type. Sorry if it is getting hard to pass the ideas, but as portuguese trying to express myself in english, I just try my best . :-)
    After repairing/compacting and zipping the file it still is 5,8 Mb anf the upload failed.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    Large size probably because of the embedded images in attachment field. Could you make a copy and eliminate some records until size is manageable? And/Or provide just objects relevant to this issue. Alternative is upload to a fileshare site such as Box.com and post link to the file.

    You want to filter the records according to the button clicked on the leftimage, which is the Type? Where is criteria for diameter entered?

    This could involve some code that would set filter property of the form or perhaps to open another form filtered to the desired data.

    I really need to see the db to get better understanding.
    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.

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

Similar Threads

  1. Replies: 10
    Last Post: 09-18-2012, 02:00 PM
  2. Buttons!
    By kp123 in forum Access
    Replies: 5
    Last Post: 12-08-2011, 04:22 AM
  3. Buttons
    By dunnmel4 in forum Access
    Replies: 1
    Last Post: 04-07-2011, 12:27 PM
  4. command buttons
    By nashr1928 in forum Forms
    Replies: 23
    Last Post: 10-15-2010, 04:09 PM
  5. Option buttons
    By chazcoral2 in forum Forms
    Replies: 11
    Last Post: 09-13-2010, 07:53 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