I've been trying to update my database using SQL while in VB. I've had a look at the site and used ideas that other people have given but it's still not working so I thought I'd post a question. The databse I'm using is called 'Coursework_Dat abase', the table I want to update is called 'Science_Bookin g', the record I want to update is called 'Booking' and it's a yes/no data type. I'll post the code below and I hope someone can help.
Thanks.
Thanks.
Code:
Dim Connection As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Coursework_Database.accdb")
Connection.Open()
Dim SQL = "UPDATE [Science_Booking] SET [Booking] = 'True' WHERE (([Booking] = False)) AND (ID = '1')"
Dim Command As New OleDb.OleDbCommand(SQL, Connection)
Dim Data_Writer As OleDb.OleDbDataReader = Command.ExecuteReader
Comment