I have a problem with a delete query that yields a "could not delete from specified tables" error. The weird thing is that -- unlike all of the many web hits that I ran across attempting to solve this problem -- there aren't multiple "tables" involved at all! It is only deleting from one table.
The code (on Form_Unload) is, simply:
The jctStudentPhone table doesn't have any relationships that would prevent a deletion. In fact, the whole thing runs fine for me. That brings me to the other piece of information here that is likely important, which is that it works on my computer (using admin account), but it doesn't work for another user who is using the program over a network. User-level security has been set up; however, the user for whom it doesn't work does have delete permission on jctStudentPhone.
Any ideas??
The code (on Form_Unload) is, simply:
Code:
strSQL = "DELETE * FROM jctStudentPhone WHERE [StudentID] Is Not Null " & _
"AND ([Phone] Is Null)"
DoCmd.RunSQL strSQL
Any ideas??