Results 1 to 2 of 2
  1. #1
    DKF is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    6

    Pop-Up Form Question


    Hello,

    I have created a form for my HR department. Sometimes the user will be updating a current employee and sometimes they will be entering in a new employee.

    I would like to create a pop-up form to ask the user if they are updating information or entering a new employee. Then based on the answer - either a blank form opens for a search or a blank form opens for a new employee entry.

    I have tried making the data entry = Yes in the Properties of the form but that seems to only allow new employee entry - not a current employee search.

    I don't know how to write Macros/Expressions/VBA code so details would be really appreciated. Thanks.

  2. #2
    Join Date
    May 2010
    Posts
    339
    Hi DKF,


    Just have a button off to the side with a label "Add New Employee" This would open your popup form. In the popup's ON Open Event: place this code.

    Code:
    Private Sub Form_Open(Cancel As Integer)
    DoCmd.GoToRecord , , acNewRec
    End Sub
    Take a look at this, I have a popup to add "Job Skills"
    https://www.accessforums.net/access/...html#post24073

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

Similar Threads

  1. Sub-Form Question
    By amcglone in forum Forms
    Replies: 2
    Last Post: 06-07-2010, 10:33 AM
  2. Replies: 10
    Last Post: 04-07-2010, 07:37 AM
  3. Form query question
    By Subotai in forum Forms
    Replies: 1
    Last Post: 02-04-2010, 05:06 PM
  4. Question about Form
    By ACM in forum Programming
    Replies: 3
    Last Post: 10-09-2009, 04:25 PM
  5. Form Event Question
    By protean_being in forum Forms
    Replies: 3
    Last Post: 05-06-2008, 10:43 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