Hi
first i want to say i'm new in this vb micros things, but i have some back ground in othe programming langauges ... any way
i have form with 2 combo boxes, one text box and one search button
the first combo box "CustomerCB" display list of customer names "
the second combo box "productsCB" display products name
i manange to disable one of the cobo boxes if the other is selected
so it can be only one active combo box (sure there is also reset botton to reset
every thing)
i want create a code that will check the active combo box and select all from its table
examble if customerCB.Enable = true then
query as String = "Select * From Order where Custmerid =" & customerCB.value
how can i execute this query and how can i display the results in text box
thx in advance
first i want to say i'm new in this vb micros things, but i have some back ground in othe programming langauges ... any way
i have form with 2 combo boxes, one text box and one search button
the first combo box "CustomerCB" display list of customer names "
the second combo box "productsCB" display products name
i manange to disable one of the cobo boxes if the other is selected
so it can be only one active combo box (sure there is also reset botton to reset
every thing)
i want create a code that will check the active combo box and select all from its table
examble if customerCB.Enable = true then
query as String = "Select * From Order where Custmerid =" & customerCB.value
how can i execute this query and how can i display the results in text box
thx in advance