Results 1 to 2 of 2
  1. #1
    ashish_access is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    6

    Problem in adding key value pair in combo box using RowSourceType as Value List

    I am creating a form in access.
    In the form there is a combobox in which I am adding items using RowSourceType as Value list and Row Source as Male;Female.
    What I require is whether there is some way so that when I select Male from combo box M is stored in database and with Female F is stored.
    I know how to achieve this with RowSourceType as Table/Query but not with RowSourceType as Value List.
    Please suggest me some solution

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Your Rowsource should be like this "M";"Male";"F";"Female".
    Just remember to add a column count of 2 and hide the first column using the column widths 0;1

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

Similar Threads

  1. Replies: 3
    Last Post: 11-08-2012, 10:38 AM
  2. Replies: 1
    Last Post: 10-03-2012, 04:12 PM
  3. Replies: 2
    Last Post: 08-29-2012, 08:01 AM
  4. Adding a list of tasks (at once) in a form
    By mooseisloose in forum Forms
    Replies: 8
    Last Post: 03-22-2011, 09:27 AM
  5. adding list to a listbox
    By jetrow in forum Access
    Replies: 0
    Last Post: 08-15-2006, 03:36 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