Results 1 to 2 of 2
  1. #1
    katc is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Location
    MN
    Posts
    3

    SubForm Going into Edit


    Hi There,
    I have created a form called Patient that has a subform called Case. The PtName has this to force users to populate the PtName in the OnExit event.

    If IsNull(Me.[PtName]) Then
    Cancel = True
    MsgBox "You must enter a Patient Name. Please enter a name to proceed!"
    Forms!EnterPatient!PtName.SetFocus
    End If

    I added a combo box to select a patient name. I just used the wizard. When you select a Patient Name from this list. It goes to the record, however the Subform goes into edit (the little pencil shows up) and you get stuck in it. Why is this happening?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I would not use the OnExit event. I would use the AfterUpdate event of the control or validate multiple controls in the Form's BeforeUpdate Event.

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

Similar Threads

  1. Unable to Edit in SubForm
    By faythe1215 in forum Forms
    Replies: 6
    Last Post: 02-04-2015, 11:19 PM
  2. Requerying Navigation Subform after Edit
    By pcotcamp in forum Programming
    Replies: 6
    Last Post: 04-05-2014, 11:29 PM
  3. Replies: 3
    Last Post: 03-19-2011, 11:04 AM
  4. Replies: 5
    Last Post: 11-25-2009, 09:13 AM
  5. Can I edit a record with a subform?
    By bigmax in forum Forms
    Replies: 0
    Last Post: 08-11-2008, 07:55 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