Results 1 to 4 of 4
  1. #1
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49

    List box on bound form shows no selection

    Hi experts, I have a simple table which lists the movies I've rent and the prices I paid. The amount field is formatted as Currency - Euro on the table level.
    I've made a simple bound form with a list box that has three possible values, entered manually as a value list (this is also a validation rule on the table itself, because the field will have only one of those values on every record).
    When I use it to save records, the field is populated just fine, however when I view an already saved record, it doesn't show me the amount of that record selected on the list box. It just shows the list with nothing selected

    Click image for larger version. 

Name:	Καταγραφή.JPG 
Views:	17 
Size:	25.2 KB 
ID:	27681
    can anyone help? the combobox above it works as it should be

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The listbox is bound to the CONTROL SOURCE (the field to save in)
    and the ROW SOURCE is set to the list of values to pick from
    so,
    looking at the table, are the values there?
    is the listbox unlocked?
    is the correct BOUND column in listbox set to the correct value?

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You bound the form but is the listbox bound to the table field whose values you want to show?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49
    Quote Originally Posted by ranman256 View Post
    The listbox is bound to the CONTROL SOURCE (the field to save in)
    and the ROW SOURCE is set to the list of values to pick from
    so,
    looking at the table, are the values there?
    is the listbox unlocked?
    is the correct BOUND column in listbox set to the correct value?
    Yes to all. This form and every field in it were created by the Access wizard automatically. I also add that the form works just fine when adding a new record (that field is correctly added to the underlying table), and it even works when I select a different value in an already existing record, but it just doesn't show me the value in the table when I navigate to it.

    I'll make a guess here by saying that Access doesn't play well with Currency fields with value lists on list boxes (when editing records). I suppose it doesn't try to match the value of the record to a value of the field list. I ended up working around the problem by making a separate table with two fields, an ID and amount field, and then replacing the field in the original table with its key. Then I edited the listbox to only show the second column of the table but with the ID number as the bound field. It now works fine. I'm not really upset that I had to do this, I just wonder why it works with the Number field (the "Rental duration" field in the picture) and not with the Currency field...

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

Similar Threads

  1. Replies: 6
    Last Post: 09-06-2016, 02:46 PM
  2. Replies: 7
    Last Post: 04-15-2015, 02:47 PM
  3. Replies: 3
    Last Post: 04-07-2014, 04:10 PM
  4. Replies: 12
    Last Post: 03-27-2014, 06:14 AM
  5. Replies: 1
    Last Post: 04-26-2013, 05:30 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