473,408 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Activating an already open form

frmFinApp instantiates, shows, and activates frmSoldLeads, by clicking
btnSoldLead.

The btnMakeDeal instantiates, shows and activates frmInputDeal and then
closes frmSoldLeads

btnSaveDeal on frmInputDeal, saves the required records, needs to set the
focus bac to the frmFinApp form.

With the definition and raising of events I can get a form activated from a
form to activate the earlier form, by putting a Me.activate command in the
event handler for the created event.

But when I declare things public shared, both the form declaration and the
event handler, I get an compile error on the Me.Activate command. The error
is "'Me' is valid only within an instance method."

What am I missing here?

Jeff Goodman
Nov 21 '05 #1
1 1533
Dabassguy,
But when I declare things public shared, both the form declaration and the
event handler, I get an compile error on the Me.Activate command. The
error
is "'Me' is valid only within an instance method."

You can never use a method outside a method of your object/class (It is
maybe confusing, however the last word method means a method inside your
program, by instance a "sub" or a "function")

That has to belong to your program by instance
private ds as new dataset

Here is ds a part of your object/class or in another way me.ds which you can
only use inside a metod

I hope this helps,
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ruskin Hardie | last post by:
Ok, I am still playing with ASP and was wondering how to do this (it seemed simple). What I want is to have a hyperlink that when it's clicked on, will run a sub routine, instead of opening a web...
3
by: P | last post by:
Hi, Access 2002. I use DoCmd.OpenForm attached to command buttons to open one form from another form. All forms are open in dialog mode. When a user tries to open a form already opened from a...
1
by: Patrick_Montana | last post by:
I am having a problem auto-activating a macro when I change data in a field on a form that is a combo box. I have a fair understanding of Microsoft Access but am not a programmer so I am trying to...
4
by: Jeho_Tee | last post by:
I am new to Ms Access and I want to use the Date and Time picker on a form. One of my computers allows it but the control does not appear in the list of ActiveX Control in the second computer. when...
9
by: RichG | last post by:
In VB 5 I could have a form named frmTest and open it with frmTest.Show Now in VB.net I have to Dim frm as New frmTest frm.show The problem is I only want one instance of frmTest open, not a...
2
by: Beejer | last post by:
I have a weird problem that I'm trying to solve but can't seem to find a solution at this time. My Access database closes completely when the "Else" of the VBA code is applicable. I'm running...
9
by: KelsMckin | last post by:
Hello, I was wondering if there was a way to check there was already a form open before opening a new one, sorry that doesnt seem clear, here is an example: The following button opens a new form...
19
by: =?Utf-8?B?R3JlZw==?= | last post by:
How can I tell via code if a Form is already open. Each time my forms load I have some initialization code that runs, but if the form is already open and hidden I don't want that initialization...
2
by: =?Utf-8?B?TWlja3lQ?= | last post by:
Ok, so I have a HP xw4200 with a valid XP Pro registration key, in fact it came on it already installed. I then bought a second-hand computer that needed Wnidows installed on, but that also had...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.