Hi, i'm new here but i'm having alot of trouble using the SQL functions to update stuff in my database.... the code is below can anyone here help out and tell me whats wrong with it please......
VB Code:
Dim MyConn As ADODB.Connection Dim MyRecSet As ADODB.Recordset Set MyConn = New ADODB.Connection MyConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=MS Access Database;Initial Catalog=D:\Documents and Settings\christopher.lynch\Desktop\Manual Time And attendance\Manualrecords.mdb" MyConn.Open MyConn.Execute ("UPDATE Manual SET '" & CmbClass.Text & "' = '" & CmbAttendance.Text & "' WHERE StudentName = '" & CmbStudent.Text & "'") MyConn.Close
What is ment to happen is, I have thre combe boxes with selection. I what to select a name to alter, class for that name and whether the student is absent or present.....
