Results 1 to 2 of 2
  1. #1
    TG_W is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299

    Question Combo box to update table in a form

    Ok. I'm stuck. Here is what I am working with:



    A form whose data set is coming from a query (in the form) on 2 tables.
    A combo box where I select a record from one of the above tables.

    Where I want to go from there:

    When I choose the record, I want to make True a boolean record in the other table. After the record is set true, I want to requery the tables (which I already know is - Me.Requery)

    The main link between the two tables is an ID number that is a primary key.

    Thank you in advance for your assitance.

  2. #2
    TG_W is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Ok. I have my original problem solved. I dropped the table that needs to have the check box checked, and I am filtering the ID numbers I need by the transaction number. Hooray!

    Now I have a new problem. I need to be able to not update some of the records based on the ID numbers as multiple IDs can be included in one transaction. For example:
    Transaction 2100 included IDs 1, 2 and 3. I updated the data originally using a different form. Now, I want to update IDs 1 and 3 only, but my filter when transaction 2100 is selected brings up IDs 1, 2 and 3.
    I added a check box to the form and have started to write an If..Else VBA statement. I have the code written to update the table, but what should I write to skip a record when the box is unchecked.
    FYI, I have the default for the check box set as "= True", as it is a more likely I will be updating all of the records, but the number of records can get pretty high, so it is easier to remove than add.
    I hope that wasn't too confusing. Thank you for any help.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2013, 11:42 AM
  2. Replies: 8
    Last Post: 02-19-2012, 03:48 PM
  3. Please Help, Combo Box Query Form Table Issue
    By Keeyter in forum Programming
    Replies: 9
    Last Post: 04-29-2010, 09:15 PM
  4. Update table from calculated field in a form
    By BernardKane in forum Forms
    Replies: 3
    Last Post: 11-28-2006, 09:48 AM
  5. After Update for a second Combo box
    By nywi6100 in forum Forms
    Replies: 0
    Last Post: 10-23-2006, 03:07 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