Results 1 to 5 of 5
  1. #1
    jlgray0127 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    193

    Combobox Help

    I have a form, with a combo box.
    The combobox is on one table. The values for the combobox are on another table. I want to either manually change the value of the combobox on my form, or use an update query, which looks at multiple other tables, and update my combobox for me, base on it meeting the criteria I load in the query.
    I have the query written, and have everything set up to do, just what I want to happen, however I'm getting an error, stating I have to use a query that is updateable.

    I've not come across this before, and am not sure why the combobox will not allow me to change it's value with the query. I have to be able to update the combobox manually and with the query. The combobox is the status of an order.
    The database was originally designed, VERY manually, and now I'm trying to auto mate it more. So, where before, the order status was all based on what the user looked up, and determined his status was, now we have more data available, which allows us to look at different criteria with queries, to determine what the status is. The manual portion is done, only if we pick or ship the order. The query will ignore the status, if it's in a picked or shipped state.

    That made it real confusing for a definition of my problem.

    Basically stated, I need to be able to run and update query, and change the value of a combobox based on the results of this query. Please help! I don't have a ton of time to continue redoing this database, and this is the quickest option I see for now, without adding alot of code, tables and forms to do what I hope is possible with the update query!


    Thank you!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Bind your form to an updatable query. Use one of the form's fields for your combo's Control Source.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The combo values will always be up to date based on the values in the table/query.
    Your question is confusing.
    You want to select a value in the combo, then do what?
    update the combo to a different value in the combo?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Setting combobox RowSource does not change value in record. If you want to programmatically set the status value, why a combobox? Use a textbox to display calculated value. Saving calculated data (data dependent on data) is usually not advisable. Calculate the status when needed.
    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.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Replies: 1
    Last Post: 05-13-2015, 01:14 PM
  2. Replies: 1
    Last Post: 01-16-2015, 09:28 AM
  3. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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