If I have one Form and two ComboBox ( 1 and 2)
The user select from Combo1 one name and from Combo2 select one age .
Line code it's something like this :
Dim varName , varAge as String
varName = Combo1.Text
varAge = Combo2.Text
Now the program create a SQL Statment for loading data from a Database .
SQL = "SELECT * FROM table WHERE name LIKE '*" & varName & "*' AND age LIKE '*" & varAge & "*'"
Question :
How can I transfer the varName and varAge in SQL Statment in Data Environment , Command statment ?
I want to create one Data Report witch print just information witch store in database and user selected by using ComboBox's in Form .
I hope do you get me !
Thank's for every sugestion .
The user select from Combo1 one name and from Combo2 select one age .
Line code it's something like this :
Dim varName , varAge as String
varName = Combo1.Text
varAge = Combo2.Text
Now the program create a SQL Statment for loading data from a Database .
SQL = "SELECT * FROM table WHERE name LIKE '*" & varName & "*' AND age LIKE '*" & varAge & "*'"
Question :
How can I transfer the varName and varAge in SQL Statment in Data Environment , Command statment ?
I want to create one Data Report witch print just information witch store in database and user selected by using ComboBox's in Form .
I hope do you get me !
Thank's for every sugestion .