Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    This is odd. The only difference I can see between the two posted dbs is the ControlSource properties are bound to fields in the second. Never encountered this before and I don't know why it is happening.



    But why are you using ValueList instead of Table as source for the lists? For example, settings for Employee combobox:

    RowSourceType: Table/Query
    RowSource: SELECT EmployeeID, LastName & ", " & FirstName AS FullName FROM Employees ORDER BY LastName, FirstName;
    ControlSource: EmployeeID
    BoundColumn: 1
    ColumnCount: 2
    ColumnWidths: 0";1"
    LimitToList: Yes
    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.

  2. #17
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, when I am in form view and click on the Combo Box forms I see the Value List instead of the choices that I want to make.

    So how do I - when in form view - make it show me the actual choices instead of a Value List code?

    That is the question.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Did you try setting the properties as I suggested?
    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.

  4. #19
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    When I input the values that you recommended:

    RowSourceType: Table/Query
    RowSource: SELECT EmployeeID, LastName & ", " & FirstName AS FullName FROM Employees ORDER BY LastName, FirstName;
    ControlSource: EmployeeID
    BoundColumn: 1
    ColumnCount: 2
    ColumnWidths: 0";1"
    LimitToList: Yes


    The properties sheet lets me do it. I then switch to form view and click on the down arrow of the combo box
    and I get the error:

    The record source 22958,70429,27049,28405,24095, does not exist ... It may be misspelled.

    go into the property sheet and set the record to a table or query.

    I have already set the record source to Occupancies. I am pretty sure it is spelled correctly. I selected it from list in the property sheet.


    I am very confused now as to why this is not working.


    Respectfully,

    Lou Reed

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    They worked for me. Provide db with your attempted changes. Let's see what you actually did.
    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.

  6. #21
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Ceil Inn1_Post2.zip

    Okay, here is my document. I have one control that is working and one that is not. I am not
    sure why. The difference (to save you the trouble of finding it) is in the column count

    The one that does not work has a column count of 1 and the one that does work has a column count of 2.

    Why it has to have a column count of two is not apparent.

    I believe that we are only dealing with one column. The employee ID numbers.

    That is one not two.

    Any help appreciated. Thanks in advance.


    Respectfully,

    Lou Reed

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Why are there two comboboxes for employees? Of course the one with a value list as RowSource and RowSourceType set to Table/Query will error. Delete that combobox.

    I do not get error message with the other employee combobox. However, you set the RowSource different from my suggestion. You include 3 fields in the RowSource, mine has 2. If you are going to do different RowSource then adjust the other properties to comply (ColumnCount and ColumnWidths).

    If you have EmployeeNumber in front of EmployeeName, user must type or select employee number, not name.

    Why build a query object for the combobox - just have SQL statement pull from table as in my example.
    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.

  8. #23
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I checked and entered the combo for Processed By. I followed your settings for everything except RowSource. I used the old one. It came from using
    the Combo Box Wizard. That is code is theirs, not mine. It (the Combo Box) then worked. I was happy and surprised. I then found my earlier dysfunctional version and put
    that on just for comparison. It has been removed.

    BTW. I thought the Combo Box Wizard was to take care of all of this stuff. The Combo Box Wizard is abstracted away (to use a current term popular where I work) from the user. Most users will use a Combo Box occasionally. So the Combo Box Wizard is the way to go.

    It seems that you must still worry about these little details, but you should not if you use the Wizard. I thought that I used the combo box correctly, but I guess I did not.

    I will respond to your third point when I have a chance to consider it.


    Respectfully,


    Lou Reed

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    As a general rule I don't use wizards because they do stuff I don't like (such as use macros and group controls into a layout).

    I manually build so I can get it the way I want it.

    Not saying don't use combobox (I would be lost without them) I am saying if you use wizard to build then deal with the outcome.
    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.

  10. #25
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, but after you use the Combo Box Wizard which should make things intuitive and easy (for those of us who use combo boxes infrequently) you still have some little nitty-picky things to do. That defeats - I think - the whole purpose of the Wizard which relives the user of small tasks. If you to input the column count and BoundCoulmn, then go ahead and do the whole thing that way. It I defeats the purpose of the combo box to say it make doing complicated tasks easy (if you are willing to accept some generalities) to then turn around and say now do this small stuff or nothing will work.

    Any comments.

    Respectfully,


    Lou Reed

  11. #26
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, I was able to handle Processed By combo code the way I said previously- Combo Box Wizard. That does not work on the Customer and Room # combo boxes. I guess that I must input code there. I was out sick last Friday, but I remember on Thursday telling you that the Combo Box Wizard did it - not me for the Processed By.

    I am unable to us the Combo Box Wizard on Customer and Room #. So I must input code in those RowSource: I am unsure how.

    Any help appreciated. Thanks in advance.


    Respectfully,

    Lou Reed

  12. #27
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I don't know why you are unsure. Think I already described how to build combobox.
    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.

  13. #28
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Yes, but I think if you look back that you will see that we disagreed (slightly) on the RowSource code. I used the Combo Box wizard and got my RowSource code
    for the Processed By label and text box. I did not use it on CustomerID and RoomID. I am unsure then how to use them there.


    Even if I use the Combo Box wizard, I still have to manually enter
    RowSourceType
    RowSource
    ControlSOurce
    BoundCoulumn
    ColumnCount
    ColumnWidths
    LmitToList

    R,

    Lou Reed

  14. #29
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Okay, set properties for each combobox as needed. Once you learned one should be able to apply the concept to others. I gave you properties for one.

    Whatever RowSource you go with (manual or wizard generated), make sure other properties are set compatible.

    As I said, I don't use the wizard.
    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.

  15. #30
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Quote Originally Posted by Lou_Reed View Post
    Yes, but I think if you look back that you will see that we disagreed (slightly) on the RowSource code. I used the Combo Box wizard and got my RowSource code
    for the Processed By label and text box. I did not use it on CustomerID and RoomID. I am unsure then how to use them there.


    Even if I use the Combo Box wizard, I still have to manually enter
    RowSourceType
    RowSource
    ControlSOurce
    BoundCoulumn
    ColumnCount
    ColumnWidths
    LmitToList

    R,

    Lou Reed
    The wizard sets all of those properties, with the possible exception of limit to list. If you're having to go back and change them after using the wizard, it's because the choices you made within the wizard weren't really what you wanted.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. I have a problem Houston
    By Lou_Reed in forum Access
    Replies: 2
    Last Post: 09-15-2015, 12:12 PM
  2. Replies: 9
    Last Post: 07-06-2015, 01:47 AM
  3. Replies: 2
    Last Post: 10-31-2012, 11:52 AM
  4. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  5. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 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