Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Time Error 438 -- Object doesn't support this property or method

Status
Not open for further replies.

uscitizen

Technical User
Jan 17, 2003
672
US
hi,

in the code below, the line seems to be giving a2k a bit of a problem:

Private Sub MR_Number_BeforeUpdate(Cancel As Integer)
Me.RecordsetClone.FindFirst "MR_Number=" & Me!MR_Number

If Me.RecordsetClone.NoMatch Then
'do nothing
Else
Cancel = True
MsgBox "WARNING -- A record already exists with this MR Number. Chr(13) The unedited value will be restored to this field.", vbCritical, "Check your Data!"
Me!MR_Number.Value = Me!MR_Number.OldValue
End If

End Sub

does this seem familiar to anyone?



“The philosophy of the school room in one generation will be the philosophy of government in the next." --- Abraham Lincoln
 
Try using instead of .oldvalue, .undo.

Hope that does it.

Chaz

Ascii dumb question, get a dumb Ansi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top