Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Using a Combo Box value as a paramater to another ComboBox
Hi.
I Have two CboBoxes on a form, one is depandent on the other as follows:
Both are set up with row sources as sql select commands
CboBox1: Select MyArea from MyFile into Cursor Cur1
cboBox2: Select MyAreaSub,MyArea from MyFIle1 where MyArea = Thisform.cboBox1.Value
This gives an error :- Thisform can only be used from within a method.
It there any way round this where the source of the second combo box is dependent on the value in the first one.
Regards,
Gerard
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement