i tried this
Dim rec as Recordset
Set rec = CurrentDb.OpenRecordset("EVENT NUMBERS", dbopendynaset)
with rec
.addnew
!F1 = MCC
!F2 =-
.update
end with
set rec = nothing
but get this
Invalid SQL statement expected; ‘delete’, ‘insert’, ‘procedure’, ‘select’, ‘update’
can some one fix the above code...i build a macro and at the end i "run SQL" with the above code
Dim rec as Recordset
Set rec = CurrentDb.OpenRecordset("EVENT NUMBERS", dbopendynaset)
with rec
.addnew
!F1 = MCC
!F2 =-
.update
end with
set rec = nothing
but get this
Invalid SQL statement expected; ‘delete’, ‘insert’, ‘procedure’, ‘select’, ‘update’
can some one fix the above code...i build a macro and at the end i "run SQL" with the above code