|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi,
i'm a beginner with visual basic. i have populated a combo box from my sql table. the problem i'm having is.. how can i pass the value the user has clicked on from the combo box to a variable per say. not sure if this make sense or not. i'm like having a brain fart. i just can't think! any help / insight would be great! thanks ![]() edmond |
|
#2
|
|||
|
|||
|
Once the user has selected from the dropdown the selected value should be in the text window of the control, so
MyVariable = Combo1.Value
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Quote:
i get a compile error it says method or data member not found |
|
#4
|
|||
|
|||
|
If you used my variable or object names that wouldn't be unusual. You need to use names that are in your code.
|
|
#5
|
|||
|
|||
|
combo1.text not combo1.value
Myvariable=combo1.text ![]() |
|
#6
|
|||
|
|||
|
Oops! The value property isn't in VB6 but it is in Access VBA.
Last edited by Doug G : August 8th, 2005 at 09:19 PM. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > get value from a combo box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|