To insert a data into the data base, to the best of my knowledge the code i have written is correct.. but i frequently get this error.. hope I will receive a proper solution for my query.
The code is:
thanks,
Preethy
The code is:
Code:
imports system.data.oledb
dim cn as new oledbconnection
dim cmd as new oledbcommand
under the insert button:
cn.open()
cmd.connection=cn
cmd.connectionstring=""
cmd.commandtype=data.commandtype.text
cmd.commandtext="insert into tablename values("")"
msgbox("inserted")
cn.close()
Preethy
Comment