Results 1 to 4 of 4
  1. #1
    PraystoYeezus is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    2

    How to create pop-up with new form in response to...

    Hello all,



    My database features employees and teams - of which there are many. The problem is that right now if I am in a form creating a record for a new employee who will start in a new team/group, when I type that team into the relevant combo box Access (rightly) displays an error that the team does not exist.

    What I'd like to do is, instead of showing this error, have a message pop up saying that the team must be created with the team-entry form (which I already created) showing below. I feel like this should be possible but I am feeling very frustrated at the moment.

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    set the combo box with Limit to List = Yes.
    Use the NotInList event to display the team entry form as a subform.
    When the team entry is complete, save the new team, requery the combobox, and set its value to the newly added team value.

  3. #3
    PraystoYeezus is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    2
    Thank you. I'll try that tomorrow when I get back to my work site and let you know how it goes. Will the sub-form show up as a pop-up, too, or just the ''error'' message?

  4. #4
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    If I've pictured it correctly, there shouldn't be an error message.

    If you still get an error message, then you may have to (1) unbind the combo box from the Team ID field in the table (2) create a text box bound to the Team ID field in the table (Enabled = No) (3) In the AfterUpdate of the combobox, if the team ID is good, set the value of the textbox to the selected value, otherwise pop up the form for entering the new team, and after the new one is added, refresh the list in the combobox.

    This would fix the timing issue.

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

Similar Threads

  1. Function Requires Response After Each SQL Line
    By kathleencampbell in forum Access
    Replies: 1
    Last Post: 03-20-2012, 09:27 AM
  2. Unbelievable Response from Access
    By whistler in forum Queries
    Replies: 10
    Last Post: 01-26-2012, 12:55 PM
  3. Replies: 3
    Last Post: 07-12-2011, 02:02 PM
  4. Often get no response from access
    By Grooz13 in forum Access
    Replies: 6
    Last Post: 08-13-2010, 10:51 AM
  5. Slow Database Response
    By Nixx1401 in forum Access
    Replies: 3
    Last Post: 02-25-2010, 11:09 AM

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