Solved

parameters

Posted on 2000-03-20
1
146 Views
Last Modified: 2010-05-02
I want to send parameters to a procedure such as form_load, how can I do that without using a public vaiable or a public procedure?
0
Comment
Question by:makris
1 Comment
 
LVL 5

Accepted Solution

by:
Voodooman earned 50 total points
ID: 2637024
You cant change the Standard from load events.

What I do is Create a Property on the form.

In the General Declarations of a testForm add this

Public EditMode as Boolean

Now before you load your form

TestForm.EditMode=True


You can then use this in the form load event to set the edit mode setup of you form.

Like this

Form Load

If editmode=true then
     TB_Something.visible=false
else
     TB_Something.visible=true
end if





Calling this type of Property does not load the form.

Be Carefull to set it to false when the form closes.

Good Luck

Voodooman!




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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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

13 Experts available now in Live!

Get 1:1 Help Now