Results 1 to 4 of 4
  1. #1
    siapliw is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    13

    Assigning value to dropdown list in a combo box & getting value for calculations.

    Hi,
    I am a newbie to Access.
    I want to create a drop down list called pH, BP, etc.
    The pH list contains math expressions as text e.g. >=7.7, 7.6-7.69, 7.5-7.59 and so on. User selects one value from this drop down combo in the form.


    Each label has a value. e.g. >=7.7 has 5, 7.6-7.69 has 4, 7.5-7.59 has 3, etc. The value from the user selected label, will be used to make calculations and get the final score.
    How to go about this? Please help.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Create a Table with these two fields with the actual value as the first field and make it an integer field. The second field will be a Text field. Set the RowSource of your ComboBox to this table and hide the 1st field (ColumnWidth = 0") Your bound column will be 1.

  3. #3
    siapliw is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    13
    Thanks very much, RuralGuy. It's perfect.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could help.

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

Similar Threads

  1. assigning a variable
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 08-22-2011, 05:55 PM
  2. Assigning value to an image
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-16-2011, 12:05 PM
  3. Assigning an Automatic PO #
    By nag3397 in forum Access
    Replies: 1
    Last Post: 01-27-2011, 02:22 PM
  4. Ranking and assigning a Value
    By loopyl00 in forum Access
    Replies: 0
    Last Post: 01-11-2011, 12:14 PM
  5. assigning probability
    By TheShabz in forum Programming
    Replies: 1
    Last Post: 05-06-2010, 12:50 PM

Tags for this Thread

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