Solved

Why this error occur?

Posted on 2002-03-25
8
133 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 70

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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
 
LVL 52

Accepted Solution

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

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 52

Expert Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 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