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

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?
 
C

Chris K

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
 
D

David W. Fenton

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.
 
C

Chris K

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top