Results 1 to 5 of 5
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    combo box working but not dispalying values

    Hi

    i have a form with a combox box that read its values from a table

    Click image for larger version. 

Name:	1.png 
Views:	14 
Size:	132.7 KB 
ID:	10959



    in the attachment the supplier combo box when opened will show other suppliers, after selecting a supplier from the list the contact name and number will also change, but when using the navigations on the right side the supplier name combo box value will not change alongside with the contact name and number

    thanks in advance

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Your post is not really very clear, but if you're saying that the supplier doesn't change, appropriately, when navigating through Records, it sounds as if the Supplier Combobox is not Bound to a Field in the underlying Table/Query.

    Linq ;0)>

  3. #3
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    sorry for not being clear but yes "that the supplier doesn't change, appropriately, when navigating through Records" what is the problem and what is the fix??

    thanks

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You are using the supplier combo box to find suppliers. This combo box is unbound - as it should be.
    In the code for the 4 supplier buttons, you would add code to push the supplier PK into the combo box.

    So in the code for "Next Supplier", add something like this as the last line of the sub
    Code:
    'combo box name ...... field name for supplier PK
    Me.cboSupplier = me.supplierPK
    Do the same for the other 3 buttons

  5. #5
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    Thanks for that,
    i didnt have the primary key on the the form but i added it and hid it, also i added the same code from above and placed it on form start up as it didnt show there too

    thanks again

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

Similar Threads

  1. Replies: 1
    Last Post: 10-03-2012, 04:12 PM
  2. Replies: 1
    Last Post: 07-12-2012, 08:39 AM
  3. Forms Not Dispalying on Network
    By KKenui in forum Forms
    Replies: 5
    Last Post: 07-16-2011, 09:05 PM
  4. Not sure why textbox not working for some values
    By jtkjames in forum Programming
    Replies: 1
    Last Post: 07-21-2010, 04:26 AM
  5. Replies: 1
    Last Post: 03-27-2010, 06:13 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