Results 1 to 4 of 4
  1. #1
    vt800c is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    23

    'Supervisor' Issue (HELP!!)

    First, this is a great forum and you are batting a thousand on helping me with my issues. but this one is going to be tricky.

    I want to make a table entry for a person. Part of the entry is the individual's supervisor. I want to be able to select it from a combo box based on some previously entered data. (that was the cascading combobox issue. you people nailed that one!) However, here is the issue:



    If there are no rows returned for the underlying query for the supervisor, I want the ID (Autonumber, Key) field of the person I AM CREATING to be placed in the 'supervisor' field (making the person 'self-managed').

    For the purposes of this illistration imagine the table as:
    Person_ID, Person_Name, Person_Data, Supervisor_ID

  2. #2
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    I guess you could write some after-update code to do this. I would probably leave the field blank and then use an iif function in any associated queries to do the calculation you're looking for.

  3. #3
    vt800c is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    23
    Is there a way that I can find out what the key value of the new person is GOING to be (assuming it's the highest autonumber value +1) and plug THAT value into the field when the user clicks the 'save' button (or the save event of the record)?

  4. #4
    vt800c is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    23
    Ok...I got my solution. I wasn't quite complete in my problemspace, and realized I was trying to populate the field with an incorrect source value. All better!

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

Similar Threads

  1. Need help with date issue.
    By ITChevyUSSNY in forum Reports
    Replies: 13
    Last Post: 02-05-2013, 10:06 AM
  2. List Box Issue
    By Igawa29 in forum Programming
    Replies: 4
    Last Post: 02-22-2011, 01:19 PM
  3. Combobox issue
    By maluna in forum Access
    Replies: 8
    Last Post: 09-08-2010, 01:01 AM
  4. adp accessing issue
    By fillerup in forum Security
    Replies: 3
    Last Post: 03-10-2010, 09:59 AM
  5. Speed issue
    By hey23 in forum Queries
    Replies: 1
    Last Post: 06-24-2009, 09:16 AM

Tags for this Thread

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