T
toby131
I get a "Run-time error '2001': You canceled the previous operation" on the
second line of my code. If I remove this line of code, everything works
fine. I'm trying to locally retrieve all the ID numbers where the part
numbers are the same to be displayed in a pop up message in this afterupdate
event. Any ideas why I am getting this error message? Thanks!
Private Sub Part_No_AfterUpdate()
FirstID = DLookup("[ID]", "Part No for ID", "[Part No]= ' " & Me.[Part No] &
" ' ")
SecondID = DLookup("[ID]", "Part No for ID", "[ID]<> FirstID And [Part No] =
' " & Me.[Part No] & " ' ")
second line of my code. If I remove this line of code, everything works
fine. I'm trying to locally retrieve all the ID numbers where the part
numbers are the same to be displayed in a pop up message in this afterupdate
event. Any ideas why I am getting this error message? Thanks!
Private Sub Part_No_AfterUpdate()
FirstID = DLookup("[ID]", "Part No for ID", "[Part No]= ' " & Me.[Part No] &
" ' ")
SecondID = DLookup("[ID]", "Part No for ID", "[ID]<> FirstID And [Part No] =
' " & Me.[Part No] & " ' ")