Results 1 to 2 of 2
  1. #1
    MarkD is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Oct 2013
    Posts
    1

    Requery object

    I have the following properties set for an object.



    Private Sub Combo18_Exit(Cancel As Integer)
    If IsNull(Me.Combo18) Then
    Me.Combo18 = [Forms]![frmServiceDocketing]![SpecialistID]
    Me.Combo18.Requery
    End If
    End Sub

    When I leave the field blank and press tab, Combo18 is populated with the SpecialistID however, I have to press the tab key a second time to move to the next field on the form. What do I need to do to only have to press tab once, execute the requery and automatically move to the next field?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    You could try the GotFocus or Enter events instead of the exit. You would then just add a .Setfocus in the afterupdate of the combobox.

    Another option may be to place your code in the form's current event. I don't know if that suits your needs though.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-02-2013, 08:41 AM
  2. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  3. Replies: 4
    Last Post: 07-07-2011, 03:21 PM
  4. Replies: 3
    Last Post: 11-02-2010, 10:14 AM
  5. Replies: 1
    Last Post: 08-05-2010, 12:11 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