hi guys,
I have a combobox and i want to use that value in query
suppose I have form in that i have textbox and combo box
and button. And I have code like this in button onclick event.
Code:
but i want make query of this code how can i do?
i want to pass the value of textbox in query.
i tried like this
Thanks a lot.
I have a combobox and i want to use that value in query
suppose I have form in that i have textbox and combo box
and button. And I have code like this in button onclick event.
Code:
Code:
If Combo2.Value = "Department" Then strSQL = "select distinct * from Laptops where Department like '*" & txtKeyword.Value & "*' " Me.SubLaptops.Controls.Item("txtQuantityOrdered") = DSum("[quantity ordered]", "Laptops", "[Department] like '*" & txtKeyword.Value & "*'")
but i want make query of this code how can i do?
Code:
DSum("[quantity ordered]", "Laptops", "[Department] like '*" & txtKeyword.Value & "*'")
i tried like this
Code:
select sum[quantity order] from laptop where [comboox value] = "whatever User Select the value from combobox " & [textbox value] =" whatever user type"
Thanks a lot.
Comment