Is Form Load event first????????

  • Thread starter Thread starter Chris K
  • Start date Start date
C

Chris K

I have a conditional quit as first line in Form Load - but instead of
quitting (the condition is most definitely true) the code is generating an
error in Form_Current event - how is it getting that far????


Private Sub Form_Load()

If Date - DateValue(Version.Caption) > 5 Then DoCmd.Quit


This is second incident of it seemingly ignoring Form Load event - it's
starting to freak me out - what could be wrong?
 
As last ditch I copy/pasted the whole form and deleted the original and now
seems to be working fine - i can only assume the form was corrupted somehow
 
As last ditch I copy/pasted the whole form and deleted the
original and now seems to be working fine - i can only assume the
form was corrupted somehow

You should reconsider your development practices if you have forms
corrupting on a regular basis.
 
David W. Fenton said:
You should reconsider your development practices if you have forms
corrupting on a regular basis.

Never had corrupted form before - in fact I've never heard of corrupted
form - just a last ditch guess and it seems to worked
 
Back
Top