Results 1 to 2 of 2

Thread: Combo Box

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    1

    Post

    Is it possible to use a combo box to select a record and then have that data fill in text boxes? ie select a name from the combo box on a form and then have name, address, phone, etc text boxes filled in automatically. Thank you

  2. #2
    New Member
    Join Date
    Aug 1999
    Location
    Waynesville, OH, USA
    Posts
    11

    Post

    Yes it will do that, just use the following script as the After Update Event for your combobox:

    Sub ComboBoxName_AfterUpdate()
    ' Find the record that matches the control.
    Me.RecordsetClone.FindFirst "[RecordName] = '" & Me![ComboBoxName] & "'"
    Me.Bookmark = Me.RecordsetClone.Bookmark
    End Sub

    Then just make sure you have text fields on the form that link to the Name, Phone number, etc. in your table.

    Brett Beckett
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width