E
Erik Vandamme
When porting an Access 2000 app to 2002/3
the following code produces an error during execution
Undefined function 'Cstr$' in expression
All references appear OK
Sub ExecuteSQL(LSQL As String)
Dim db As Database
Set db = CurrentDb()
Me.Repaint
db.Execute LSQL
' MsgBox CStr(db.RecordsAffected) & " records were affected by this SQL
statement."
Me.ShowTask.Value = CStr(db.RecordsAffected) & " records affected"
Me.Repaint
End Sub
the following code produces an error during execution
Undefined function 'Cstr$' in expression
All references appear OK
Sub ExecuteSQL(LSQL As String)
Dim db As Database
Set db = CurrentDb()
Me.Repaint
db.Execute LSQL
' MsgBox CStr(db.RecordsAffected) & " records were affected by this SQL
statement."
Me.ShowTask.Value = CStr(db.RecordsAffected) & " records affected"
Me.Repaint
End Sub