Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error 424 object required

Status
Not open for further replies.

vanti1

Technical User
Apr 11, 2001
6
IE
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
 
Hi Mike,

Dim intMikesNumber as Integer
intMikesNumber = 998

rs!coursecode = intMikesNumber

should get it to go... :) Gord
ghubbell@total.net
 
These two lines
'rs.AddNew
'rs("coursecode") = 998

are commented out?

Didn't get the point of the previous post at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top