• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

Why this error occur?

I load a form from main menu using form1.show vbmodal
after save some data in form1, i click 'back' button for back to main menu.

It always display this error message and some data might not be save sometimes.

Error during lolad.   Refer to C:'\Windows\Desktop\myVBFolder\form1.log' for details

How to solve this problem?
0
yongyih
Asked:
yongyih
  • 2
  • 2
  • 2
  • +2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
and what is the error in the .log ?
0
 
inethogCommented:
Send me your code and the log file, I'll have a look at it, if you wish.

D.

inethog@hotmail.com
0
 
yongyihAuthor Commented:
sorry, i already solve this problem..
the problem is because

unload form1
form1.setVisible=false

i should set visible to false first before unload form1.

Can i change the question to another one..
how to do calculation for date.
example today is 26/03/2002
i want to add 13 (13 months) to this date so that i get
26/03/2003

how can i do this?  

thanks.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
BahnassCommented:
I think u SHOLD ASK TO DELETE q ( By sending 0 point Q in community support area) then make a new Q for PAQ
as any one will visit the Q will not know from its header

also think about emoreau Told U to C what is inside log file ( This can be translated into points more than 10 ....)

0
 
Ryan ChongCommented:
Anyway try: Dateadd("m",13,now())
0
 
Éric MoreauSenior .Net ConsultantCommented:
>>example today is 26/03/2002
>>i want to add 13 (13 months) to this date so that i get
>>26/03/2003

now + 13 months = april 2003!
0
 
yongyihAuthor Commented:
thanks ryancys, you solved my problem.
0
 
Ryan ChongCommented:
you're welcome :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now