S
shank
I'm getting this error...
Compile error: Method or data member not found
..Edit is highlighted when the error occurs.
Can someone decipher the error a bit and give me a clue where to look?
thanks!
Public Function RunningCount()
Dim db As Database
Dim rs As Recordset
Dim intCount As Integer
Dim strOrder As String
Set db = CurrentDb
Set rs = db.OpenRecordset("TempCompTitles", dbOpenDynaset)
With rs
.MoveFirst
Do Until .EOF
If ![OrderNo] = strOrder Then intCount = intCount + 1 Else intCount =
1
.Edit <--THIS IS HIGHLIGHTED
![SortKey] = intCount
strOrder = ![OrderNo]
.Update
.MoveNext
Loop
End With
End Function
Compile error: Method or data member not found
..Edit is highlighted when the error occurs.
Can someone decipher the error a bit and give me a clue where to look?
thanks!
Public Function RunningCount()
Dim db As Database
Dim rs As Recordset
Dim intCount As Integer
Dim strOrder As String
Set db = CurrentDb
Set rs = db.OpenRecordset("TempCompTitles", dbOpenDynaset)
With rs
.MoveFirst
Do Until .EOF
If ![OrderNo] = strOrder Then intCount = intCount + 1 Else intCount =
1
.Edit <--THIS IS HIGHLIGHTED
![SortKey] = intCount
strOrder = ![OrderNo]
.Update
.MoveNext
Loop
End With
End Function