I noticed that after running compact/repair, I have to recompile my code for the program not to break the next time I open it. What happens is the auto exec macro runs the main() module, then hangs with the second line of code highlighted. No error message, just hangs. If I stop it and recompile the code, it runs again. Does anyone know anything about this? Is there some way to run something to recompile the code automatically after compacting so it doesn't get a hang the next time? Following is the code that runs after the autoexec macro (which simply calls the code):
Public Function Main()
Call SetStartupPrope rties
DoCmd.OpenForm "frmSplash" , acNormal, , , , acWindowNormal
DoCmd.OpenForm "frmLoginMa in", acNormal, , , , acDialog
End Function
Public Function Main()
Call SetStartupPrope rties
DoCmd.OpenForm "frmSplash" , acNormal, , , , acWindowNormal
DoCmd.OpenForm "frmLoginMa in", acNormal, , , , acDialog
End Function
Comment