So my program worked just fine, now i create a switchboard and try to run the Module, now I get the error "The object doesn't contain the Automation object 'deleteoldrecords'.
The code for it is:
It shows up under 'Unrelated Objects'.
I hope it is something simple, thanks in advance.
The code for it is:
Code:
Public Function deleteoldrecords()
LResponse = MsgBox("Do you want to delete Graduated Students?", vbYesNo, "Continue")
If LResponse = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunSQL "Delete * from GradStudentsQuery"
MsgBox "Successfully Deleted Graduated Students", vbOKOnly
Else
End If
End Function
It shows up under 'Unrelated Objects'.
I hope it is something simple, thanks in advance.