Hi Frnds
As a college project, I am developing college admission software in VB.net using SQL server 7.0 as backend. Problem is that The Record is not Deleting from the Database. and It is showing Error. I used same code for MS Access database and the record is being deleted. Please Help me.
My code is
__________________________________________________ _____
button delete
'sql = "delete * from bastud where prn=" & prnno
'indata()
Sub indata()
OleDbCommand1.CommandType = CommandType.Text
OleDbCommand1.CommandText = sql
OleDbCommand1.ExecuteNonQuery()
End Sub
__________________________________________________ _____
prn is the field in the database
prnno is a temporary variable
sql is a string
bastud is my database name
I am using Windows Authentication mode while connecting database
Please Help Me