I have a query like in VB 2005
"SELECT DISTINCT c.coreid,n.nameplural,n.namecsalut,a.addrline1," & _
"a.addrline2, a.addrline3, a.addrcity, a.addrplace, a.addrzipcod,a.addrcntry " & _
"FROM corebio_full as c INNER JOIN name_full as n" & _
"ON c.coreid = n.nameid JOIN address_full AS a" & _
"ON c.coreid = a.addrid" & _
"WHERE n.nametype ='a' or a.addrlocatr='good' or a.addrmc1 ='y' and " & _
"a.addrforign ='Y' or a.addrforign ='USA'" & _
"and g.giftamount between val &('& txtMin.text &')& and val &('& txtMax.text &') &" & _
"and g.gifteffdat between Cdate (dtselectdate1.Value) and cdate (dtselectdate2.Value ) "
How should I allow the user to enter values and I need to get the resultset for amount and date between.
Any help is appreciated.
"SELECT DISTINCT c.coreid,n.nameplural,n.namecsalut,a.addrline1," & _
"a.addrline2, a.addrline3, a.addrcity, a.addrplace, a.addrzipcod,a.addrcntry " & _
"FROM corebio_full as c INNER JOIN name_full as n" & _
"ON c.coreid = n.nameid JOIN address_full AS a" & _
"ON c.coreid = a.addrid" & _
"WHERE n.nametype ='a' or a.addrlocatr='good' or a.addrmc1 ='y' and " & _
"a.addrforign ='Y' or a.addrforign ='USA'" & _
"and g.giftamount between val &('& txtMin.text &')& and val &('& txtMax.text &') &" & _
"and g.gifteffdat between Cdate (dtselectdate1.Value) and cdate (dtselectdate2.Value ) "
How should I allow the user to enter values and I need to get the resultset for amount and date between.
Any help is appreciated.