Sub addingrecords()
Dim MyDB As Database
Dim rs As Recordset
Set MyDB = CurrentDb
Set rs = db.OpenRecordset("Coursesffff", dbOpenDynaset)
'rs.AddNew
'rs("coursecode" = 998
rs.Close
MyDB.Close
End Sub
code to add a record to a table called coursesffff produces the following error (object required error 424) any ideas guys??
thanks as always
mike
Dim MyDB As Database
Dim rs As Recordset
Set MyDB = CurrentDb
Set rs = db.OpenRecordset("Coursesffff", dbOpenDynaset)
'rs.AddNew
'rs("coursecode" = 998
rs.Close
MyDB.Close
End Sub
code to add a record to a table called coursesffff produces the following error (object required error 424) any ideas guys??
thanks as always
mike