Results 1 to 3 of 3
  1. #1
    dippim is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    2

    Combobox blank when bound column hidden

    I'm new to this forum, so please let me know about and forgive me for any protocol errors.

    I am constructing a very simple form based on two linked tables from SQL server. One table is data defining a Work Order(Work order number, date, product, etc...) and the other table is a list of products which can be produced (a uniqueidentifier, item number, description, price, etc...). The form is based on the Work Order table and has a combobox representing the product being produced for this work order. I want to present the user with a list of possible products from the table so that the users sees the item number, but the uniqueidentifier is stored in the table. I've set the row source for the product combobox as:

    select products.[index], products.[item number] from products

    The bound column is 1, the column count is 2 and the column widths are 0";1"



    If I hit the down arrow on the combobox, the list appears correctly. After I select an item, the combobox correctly displays the item number and stores the uniqueidentifier. However, if I navigate to another record and then return, then the combobox text is blank. The uniqueidentifier is still in the table for the record, but the item number associated with this uniqueidentifier is not displayed. It's as if the combobox is trying to display the 0" width bound column.

    Any ideas what I have wrong here?

    Thanks.

    ________________________EDIT______________________ ______

    The problem seems to be related to the how Access sees the SQL table. The Work Orders table has two uniqueidentifier fields in it, one for the work order and one for the product being produced. when I look at the table structure in Access, the uniqueidentifier for the product is identified as being 'short text'. I'm thinking that Access is not finding a match in the list because it is comparing a 'short text' value to a uniqueidentifier and failing. Any way I can make Access see the second uniqueidentifier for what it is?
    Last edited by dippim; 11-25-2014 at 01:10 PM. Reason: More information

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Are you sure the combo box is bound a field in Work Order table?

  3. #3
    dippim is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    2
    Yes, the control source for the combobox says "product" and the form's recordsource is the work order table.

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

Similar Threads

  1. Replies: 7
    Last Post: 11-11-2014, 06:10 PM
  2. Combobox and bound column settings
    By RabbidB in forum Access
    Replies: 14
    Last Post: 11-21-2013, 02:39 PM
  3. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  4. Bound form with bound combobox
    By Jerry8989 in forum Access
    Replies: 2
    Last Post: 12-05-2011, 01:50 PM
  5. Column Order, Hidden, Name
    By Eightball3 in forum Forms
    Replies: 1
    Last Post: 06-30-2010, 12:35 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