?
2010-04-15 14:05:52 UTC
i.e.
Private Sub cmdNext_Click()
'increment row number:
lCurrentRow = lCurrentRow + 1
'POPULATE FORM FIELDS
cmbRecords.Text = Cells(lCurrentRow, 7).Value
end sub
Instead of using "next" or "previous"... I placed a combox to the left. The source is a range in the work sheet, as the worksheet populates, it pops up in the combobx.... (incase there are 100+ records, no one wants to click 100 times looking for something they recently entered).
I want for the form to populate itself based on the record selected in the record combobox.. meaning :
This is the work sheet:
First name Last name Phone Number
John Smith 555-555-5555
if on the combobox "smith" is selected, i want his first name, last name and phone number to populate.
The combobox's source is what ever pops up in the last name column because i pre-set it to that range.
How do i tell excel to navigate to the specific record selected in the combobox? do i have to designate the row as where ever the value currently selected in the combox is? (if so, HOW!?)
I'm probably asking this in the worst most confusing way possible. lol
I know how to tell it what to populate, but how do i tell it, where to go? so it knows what record i want? kind of like a link?... is Smith is selected in the combobox, then the fields should auto update / fill his info in the userform. it'll do the same thing as the "next" "Previous" button, but less clicking, just select one of the records previously entered.