Results 1 to 2 of 2
  1. #1
    Canadiangal is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    81

    Subform not always allowing new record creation

    I have a form that allows the end user to either edit employee information or add new employees. In this form are two subforms. One subform contains employee information and works just fine. The main form contains Human Resource information and works just fine. The second subform contains information from the department table.
    When I enter a new record in this form and put some information into the form it automatically creates a new record in my employee subform and fills in the employeeID (which is an autonumber). It also creates a new record in my Department Table subform. (This subform is based on a query that joins the department and the department table based on DeptID). (So far so good)
    Now the issues begin
    If I put in a DepartID in right away, then everything works fine; however, I have set this up for the end user to put in the Department Name (since no one actually knows that numbers off hand). Once they put the Department Name in, then the DeptID becomes non-typable. I have no idea why. If I click out of the subform is tells me it can't find a record in the table Department with key matching field(s) DepartmentID. What I would like is for them to select Department (This is a dropdown which was created automatically when I brought in the subform) and have DeptID fill in.
    Thank you in advanced for any help you can give.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The combobox should be a multi-column, review http://datapigtechnologies.com/flash...combobox3.html
    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.

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

Similar Threads

  1. Replies: 17
    Last Post: 03-09-2013, 09:54 PM
  2. Replies: 19
    Last Post: 12-21-2012, 06:57 AM
  3. Replies: 6
    Last Post: 08-22-2012, 03:24 AM
  4. Creation of New Record when Tab Last Field
    By Lupson2011 in forum Access
    Replies: 2
    Last Post: 09-07-2011, 08:05 AM
  5. Replies: 9
    Last Post: 06-20-2011, 03:42 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