Hello Readers,
I'm facing problem in one of my different INSERT command. the code is:
This command prompting: DATA TYPE MISMATCHED.Code:sql = "INSERT INTO DayWiseRoster (id) select UserOFTheMonth (id) where emp_id='" & txtempid.text & "'"
Couldnt find what the problem is. I need such code for data validation. I guess passing integer value with reference of another integer value creates the problem. Is there any different SQL code for passing integer value.
the same command i used in my program for different table. That one is:
Its working fine but the first one is creating problem. Can any one rid me of it??Code:ssql=" INSERT INTO UserOfTheMonth (emp_id) SELECT users (Emp_id) where name='" & cboname.text & "'"
Please.....
regards




Reply With Quote