I
Ian
I am using VBA code to update an existing record in a
table from the data entered on a form.
The code used works fine in another database but in this
one the error message 'Compile Eror: Method or Data
Memeber Not Found' appears at the 'CurrTab.Edit' line in
the code below.
Any help would be much appreciated.
Dim CurrDb As Database
Dim CurrTab As Recordset
Set CurrDb = CurrentDb
Set CurrTab = CurrDb.OpenRecordset("tblCases")
Do Until CurrTab.EOF
If CurrTab("CaseID") = Me!CaseID Then
CurrTab.Edit
CurrTab("ReasonUpheld") = Me!ReasonUpheld
CurrTab("Fund") = Me!Fund
CurrTab.Update 'Updates the record
table from the data entered on a form.
The code used works fine in another database but in this
one the error message 'Compile Eror: Method or Data
Memeber Not Found' appears at the 'CurrTab.Edit' line in
the code below.
Any help would be much appreciated.
Dim CurrDb As Database
Dim CurrTab As Recordset
Set CurrDb = CurrentDb
Set CurrTab = CurrDb.OpenRecordset("tblCases")
Do Until CurrTab.EOF
If CurrTab("CaseID") = Me!CaseID Then
CurrTab.Edit
CurrTab("ReasonUpheld") = Me!ReasonUpheld
CurrTab("Fund") = Me!Fund
CurrTab.Update 'Updates the record