| View previous topic :: View next topic |
| Author |
Message |
Kiltro_Chilensis General User


Joined: 06 Jun 2004 Posts: 45 Location: Proudly located in Chile
|
Posted: Mon Jun 28, 2004 11:32 am Post subject: How to populate a combo box |
|
|
How to populate a combo box from a Recordset?
From the bottom of America....
KILTRO CHILENSIS |
|
| Back to top |
|
 |
Kiltro_Chilensis General User


Joined: 06 Jun 2004 Posts: 45 Location: Proudly located in Chile
|
Posted: Mon Jun 28, 2004 12:06 pm Post subject: *** SOLVED *** |
|
|
Don't Worry! Solved. please check it for comments....
If Not IsNull(rs) Then
While rs.next
parameter = rs.getString(1)
cboNombres.addItem (parameter, 1)
Wend
End If
Para los Latinos del Foro miren el manual aquí:
StarOffice 7 Office Suite - Manual de programacion en Basic
Yo po'
EL KILTRO CHILENSIS!!! |
|
| Back to top |
|
 |
Zarius OOo Enthusiast


Joined: 21 Jan 2005 Posts: 142 Location: Brisbane, Australia
|
Posted: Fri Jan 21, 2005 2:38 am Post subject: |
|
|
For large datasets, using the 'with' command seems to be more efficient (it took two seconds off the load time of my dialog with two comboboxes in it).
| Code: |
If Not IsNull(rs) Then
With rs
While .next
parameter = .getString(1)
cboNombres.addItem (parameter, 1)
Wend
End With
End If
|
See here for more info. |
|
| Back to top |
|
 |
|