Results 1 to 4 of 4
  1. #1
    Tomfernandez1 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    74

    Move Selected Combo Box Value to Form Field and Then Delete Value From Combo Box Source

    Hi,

    On my Employee Profile Form is field "EmpID" which the user enters the employee ID (unique value assigned when hired). the employee ID numbers numbers go as high as 400 (we currently have 200 employees). We now have temporary employees so I wanted to create a combo box with values from table TA_TempID, ranging from 8001 to 8999, so when the user selects a value from the combo box I want that value to populate in the EmpID field and delete from the TA_TempID table. I can set up the TA_TempID table, and corresponding combo box on the Employee Profile Form but I don't know a code to execute the desired action. I am familiar with VBA and Macros so any direction is greatly appreciated!

    Thank you.

    Tommy

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    An argument could probably be made for having a single table with a field to signify temporary vs permanent. That said, you can append the temporary record to the regular table with an append query or a recordset, either method using the combo for a criteria. Then use the same criteria to delete from the temporary table. Another case could be made for not deleting the record, just marking it so with a field for status or whatever.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Tomfernandez1 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    74
    "you can append the temporary record to the regular table with an append query or a recordset, either method using the combo for a criteria. Then use the same criteria to delete from the temporary table."

    I will give this one a try. Thank you!

    Tommy

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, post back if you get stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 04-26-2020, 02:33 AM
  2. Replies: 7
    Last Post: 03-07-2017, 03:01 PM
  3. Replies: 3
    Last Post: 12-03-2014, 01:40 PM
  4. Replies: 3
    Last Post: 12-11-2012, 09:12 AM
  5. Replies: 5
    Last Post: 08-30-2012, 06:34 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