glgcag1991
Programmer
Checking OldValue of bound comboboxes on multiple forms. Some are throwing error 3251 (Operation is not supported for this type of object). I can't find any consistency for this but it just started happening. It is an Access 2003 database and we have been using it for years without problem. I have compacted and repaired both the client db and the data db- no change. Here is the basics of the audit record I'm trying to create on before_update of the combobox fields:
It errors on the "If Not Nz(. . ." line whether the value is null or not. If I take out the OldValue the error goes away. Any ideas?
Thanks!
Code:
Private Sub cboType2Key_BeforeUpdate(Cancel As Integer)
If Not Nz(Me.cboType2Key.OldValue, "") = "" Then
sAuditNote = sAuditNote & (append what has changed here)
End If
End Sub
It errors on the "If Not Nz(. . ." line whether the value is null or not. If I take out the OldValue the error goes away. Any ideas?
Thanks!