Please help me correct the following query:
SQL = "insert into tblContract (Empid, Start1, Finish1, Store1, " & _
"Start2, Finish2, Store2 ) " & _
"values ('" & Me.txtEmpNo.Value & _
"',select max(testid) FROM tbltesting,'" & _
Me.txtContSunStart1.Value & "', '" & _
Me.txtContSunFinish1.Value & "','" & _
Me.txtContSunStore1.Value & "','" & _
Me.txtContSunStart2.Value & "', '" & _
Me.txtContSunFinish2.Value & "','" & _
Me.txtContSunStore2.Value & "')"
Problem is here :
select max(testid) FROM tbltesting
Any other options ?