G
Gordon
I have converted my Access 2003 database to 2007, but when I try to
compile the code now, I get an error "Method or data member not found"
with the word "edit" highlighted in the following piece of code:
Private Sub cmdImportTracks_Click()
Dim db As DAO.Database, rs As Recordset, lintkount As Integer
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblCutsTemp")
lintkount = 1
Do While Not rs.EOF
rs.Edit
rs!fldTrackNo = FORMAT(lintkount, "##") ' formats like A 1,A
2...A10
rs.Update
lintkount = lintkount + 1
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Set db = Nothing
End Sub
I had no problems with this in Access 2003 - can anyone suggest what
is causing this?
Thanks
Gordon
compile the code now, I get an error "Method or data member not found"
with the word "edit" highlighted in the following piece of code:
Private Sub cmdImportTracks_Click()
Dim db As DAO.Database, rs As Recordset, lintkount As Integer
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblCutsTemp")
lintkount = 1
Do While Not rs.EOF
rs.Edit
rs!fldTrackNo = FORMAT(lintkount, "##") ' formats like A 1,A
2...A10
rs.Update
lintkount = lintkount + 1
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Set db = Nothing
End Sub
I had no problems with this in Access 2003 - can anyone suggest what
is causing this?
Thanks
Gordon