Hi,
The following keep coming up and I didn't do any cancelling operation.
Run-Time error '2001' You canceled the previous operation. My code is
If DCount("[CategoryID]", "TCategory", "[Category] ='" & Me!Category & "'") = 0 Then
DoCmd.RunSQL "INSERT INTO TCategory (CatSeq, Category) values (Me!CatSeq, Me!Category)"
End If
I have already tried compact and repair but doesn't work.
The following keep coming up and I didn't do any cancelling operation.
Run-Time error '2001' You canceled the previous operation. My code is
If DCount("[CategoryID]", "TCategory", "[Category] ='" & Me!Category & "'") = 0 Then
DoCmd.RunSQL "INSERT INTO TCategory (CatSeq, Category) values (Me!CatSeq, Me!Category)"
End If
I have already tried compact and repair but doesn't work.