Solved

Why this error occur?

Posted on 2002-03-25
8
128 Views
Last Modified: 2010-05-02
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
Comment
Question by:yongyih
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6895527
and what is the error in the .log ?
0
 
LVL 1

Expert Comment

by:inethog
ID: 6895667
Send me your code and the log file, I'll have a look at it, if you wish.

D.

inethog@hotmail.com
0
 
LVL 2

Author Comment

by:yongyih
ID: 6895727
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
 
LVL 3

Expert Comment

by:Bahnass
ID: 6895747
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 49

Accepted Solution

by:
Ryan Chong earned 10 total points
ID: 6895750
Anyway try: Dateadd("m",13,now())
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6896081
>>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
 
LVL 2

Author Comment

by:yongyih
ID: 6899701
thanks ryancys, you solved my problem.
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 6901035
you're welcome :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now