No entiendo muy bien tu pregunta pero haber si te sirve esto de visual basic
yo le paso los parametros asi
dim strSQl as string
strsql=" select * fro tabla x where fecha >" & textbutton.text
en visul basic tools
lo paso asi
strsql "select * from tblx where fecha >"& sparm(btbltablay.fecha)
si no te sireve haber si por lo menos te ubica en tu pregunta