|
-
Aug 11th, 1999, 07:32 PM
#1
Thread Starter
New Member
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
-
Aug 11th, 1999, 09:45 PM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|