Results 1 to 4 of 4
  1. #1
    nishant.dhruve is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    34

    creating form with option button

    Hi ,
    i m looking forward to create a from where i have kept several option button. now i want to create form in such a way that when i hit next button its should filter data in my table according to active option button.
    Can someone suggest VBA code for it?/

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    bad thing, Option buttons MAY need vb code.
    IF you want to filter data on a numeric value , then option buttons will work.
    If NOT, then you must create code to make it do string values. Which is why combo box would work better.

    On the form, the options are put into a FRAME. The Frame gets the value of the option chosen. Then the query would look at this to pull data.
    select * from table where [field] = forms!myForm!Frame1

  3. #3
    nishant.dhruve is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    34
    But how to create that Frame i m not much familiar with access and trying to learn it

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The frame is in the control list next to combo boxes,and list boxes.
    just hover the cursor over the icon that looks like a box. The name will appear.

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

Similar Threads

  1. Creating a Form Button to Clear Table Data
    By wojosh6 in forum Access
    Replies: 5
    Last Post: 12-10-2015, 01:45 PM
  2. Replies: 4
    Last Post: 11-22-2014, 11:43 PM
  3. Replies: 1
    Last Post: 11-30-2013, 03:43 AM
  4. Creating an open form button using a composite key
    By dhollingsworth in forum Forms
    Replies: 20
    Last Post: 11-12-2013, 02:38 PM
  5. Combo Box Wizard does not have option form option
    By CementCarver in forum Forms
    Replies: 5
    Last Post: 02-28-2013, 08:54 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