Results 1 to 5 of 5
  1. #1
    hksahoo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    12

    Enabling and disabling fields based on multiple values from combo box


    I have a combo-box with drop-down list to select with check boxes. The options are CASH, CHEQUE, DD, LETTER, PRAYER. One can also select multiple options like CASH and DD, CHEQUE and DD, DD and LETTER etc. I want that if DD is not selected then the DD_NO, DD_DATE, DD_AMT fields should be disabled. Similarly if only CASH is selected, then CHEQUE_NO, CHEQUE_DATE, CHEQUE_AMT and also DD_NO, DD_DATE, DD_AMT fields should be disabled. Pl. advise how to do it.

    hksahoo

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    This is a multi-select combobox for a multi-value field?

    You have separate fields for CHEQUE, CASH, DD, LETTER, PRAYER?

    If yes then your data structure is not normalized and will cause you a lot of problems and what you want might not be possible.
    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
    hksahoo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    12
    Ya.. this is multi-select combobox for multiple fields. For selection of "Cheque" in the combobox I Have three related fields like Cheque_No, Cheque_Date and Cheque_Amt. Similarly for selection of DD I have three related fields like DD_No, DD_Date and DD_Amt. If "Cash" is selected I have only one field "Cash_Amt". For the other two selections of "Letter" and "Prayer" I have only two logical fields(Yes/No) i.e. if "Letter" or "Prayer" or both are selected, then in the form, it should automatically show as "Yes". I wanted to send the database for your perusal but unable to attach as the size is more than 500 KB. So. Pl. advise what is to be done.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Zip the file. 2mb zip allowed.
    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
    hksahoo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    12

    db attached

    I have attached the db. Pl. help as I am unable to write the code and place it at the proper place.
    Attached Files Attached Files

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

Similar Threads

  1. Replies: 5
    Last Post: 03-11-2013, 03:12 PM
  2. Enabling and disabling fields
    By SgtSaunders69 in forum Programming
    Replies: 9
    Last Post: 12-27-2011, 06:11 PM
  3. Disabling and Enabling subforms
    By vt800c in forum Programming
    Replies: 3
    Last Post: 05-24-2011, 07:37 AM
  4. Enabling Disabling Combo Boxes from Values
    By vdanelia in forum Forms
    Replies: 3
    Last Post: 02-04-2011, 10:09 AM
  5. Replies: 1
    Last Post: 01-10-2011, 12:25 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