Im a 3rd year computer science student. I am using adodc on my project, i dont know whats wrong, I'm trying to set the recordsource of my adodc, and trying to filter my database with a criteria that has an integer datatype. . .i think i have tried everything:
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = '" & me.Text1.text & "' "
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = '" + val(me.Text1.te xt) + "' "
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = ' me.Text1.text ' "
when i try to debug my code, i reaized that it could get the value of of the textbox or the variable, but it always say "Datatype mismatch" . . .
i need some help,
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = '" & me.Text1.text & "' "
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = '" + val(me.Text1.te xt) + "' "
me.Adodc1.Recor dsource = "Select * from tbltrans where Service_Tag = ' me.Text1.text ' "
when i try to debug my code, i reaized that it could get the value of of the textbox or the variable, but it always say "Datatype mismatch" . . .
i need some help,
Comment