|
-
September 4th, 2001, 04:44 AM
#1
relating combobox and subform
I,ve a got a problem which is ...
i,ve got a combobox which is connected to a subform and when i click combobox should appear in the subform all the information related to combobox . i don´t know how to do it dinamic.
-
September 4th, 2001, 04:50 AM
#2
Re: relating combobox and subform
U can use the property form.tag of your subform to exchange the value of combo... or U can add some public properties to subform.
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
September 4th, 2001, 04:55 AM
#3
Re: relating combobox and subform
using tag.
'in main form
private sub command1_click()
mysubform.tag = mycombo.listindex
mysubform.show
end sub
'subform module
private sub form_load()
msgbox me.tag
end sub
using public properties
'in main form
private sub command1_click()
mysubform.X_listindex = mycombo.listindex
end sub
mysubform.show
'subform module
public X_listindex as long
private sub form_load()
msgbox me.X_listindex
end sub
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
September 4th, 2001, 06:17 AM
#4
Re: relating combobox and subform
Thanks, but i don´t know why but it still doesn´t work. The information that appears in the subform still the same no matter which is selected in the combobox. but is stange because no error message appears...
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
|