473,715 Members | 6,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regaining form focus after opening a table.

Hello peoples,

This is a last resort, as I've run out of search strings I can think
of for this problem. There may very well be a simple and logical
solution that I have overlooked.

Thanks in advance for any help...

I have created a simple database that greets the user with user forms
to make for user-friendly practicality. From these forms, all
available tasks within the database can be accessed.

One such task is that of importing data from Excel and making a table
with it. This I can do successfully, and I can bring the new table to
focus (using the 'DoCmd.OpenTabl e' method) so that the user can look
at it and enter or change data if they so desire.

My problem is, when they close the table, I wish for the main user
form to return to focus. Instead, when the table is closed the form is
nowhere to be seen.

Any solutions, or even pointers to a good starting place would be
greatly appreciated.

Thanks again,
VanIkyn

va*****@hotmail .com
Nov 12 '05 #1
3 4195
TC
If a form is open, & the user clicks a button on that form to import the
table, & the form displays the table with a DoCmd.OpenTable , the form will
still be there when the user closes the table. So, the form must be closing
itself (when it does not need to), or, the user must be accidentally closing
the >form<, as well as (or instead of) the table.

HTH,
TC
"VanIkyn" <va*****@hotmai l.com> wrote in message
news:c5******** *************** ***@posting.goo gle.com...
Hello peoples,

This is a last resort, as I've run out of search strings I can think
of for this problem. There may very well be a simple and logical
solution that I have overlooked.

Thanks in advance for any help...

I have created a simple database that greets the user with user forms
to make for user-friendly practicality. From these forms, all
available tasks within the database can be accessed.

One such task is that of importing data from Excel and making a table
with it. This I can do successfully, and I can bring the new table to
focus (using the 'DoCmd.OpenTabl e' method) so that the user can look
at it and enter or change data if they so desire.

My problem is, when they close the table, I wish for the main user
form to return to focus. Instead, when the table is closed the form is
nowhere to be seen.

Any solutions, or even pointers to a good starting place would be
greatly appreciated.

Thanks again,
VanIkyn

va*****@hotmail .com

Nov 12 '05 #2
Tom
Rather than opening the table with the Excel data you should open a form based
on the table. If you open the form from your main user form, when you close the
form, you will be back to the main user form.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com
"VanIkyn" <va*****@hotmai l.com> wrote in message
news:c5******** *************** ***@posting.goo gle.com...
Hello peoples,

This is a last resort, as I've run out of search strings I can think
of for this problem. There may very well be a simple and logical
solution that I have overlooked.

Thanks in advance for any help...

I have created a simple database that greets the user with user forms
to make for user-friendly practicality. From these forms, all
available tasks within the database can be accessed.

One such task is that of importing data from Excel and making a table
with it. This I can do successfully, and I can bring the new table to
focus (using the 'DoCmd.OpenTabl e' method) so that the user can look
at it and enter or change data if they so desire.

My problem is, when they close the table, I wish for the main user
form to return to focus. Instead, when the table is closed the form is
nowhere to be seen.

Any solutions, or even pointers to a good starting place would be
greatly appreciated.

Thanks again,
VanIkyn

va*****@hotmail .com

Nov 12 '05 #3
Thankyou all for your help,

Tom, this sounds like a sound suggestion and one that I will follow
up.
At least this way I have control over events that happen to the new
form, which is precisely what I need.

Thanks again,
VanIkyn
"Tom" <th*******@bell south.net> wrote in message news:<_q******* ************@ne wsread2.news.at l.earthlink.net >...
Rather than opening the table with the Excel data you should open a form based
on the table. If you open the form from your main user form, when you close the
form, you will be back to the main user form.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com
"VanIkyn" <va*****@hotmai l.com> wrote in message
news:c5******** *************** ***@posting.goo gle.com...
Hello peoples,

This is a last resort, as I've run out of search strings I can think
of for this problem. There may very well be a simple and logical
solution that I have overlooked.

Thanks in advance for any help...

I have created a simple database that greets the user with user forms
to make for user-friendly practicality. From these forms, all
available tasks within the database can be accessed.

One such task is that of importing data from Excel and making a table
with it. This I can do successfully, and I can bring the new table to
focus (using the 'DoCmd.OpenTabl e' method) so that the user can look
at it and enter or change data if they so desire.

My problem is, when they close the table, I wish for the main user
form to return to focus. Instead, when the table is closed the form is
nowhere to be seen.

Any solutions, or even pointers to a good starting place would be
greatly appreciated.

Thanks again,
VanIkyn

va*****@hotmail .com

Nov 12 '05 #4

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

Similar topics

11
2528
by: greg.scharlemann | last post by:
I've been playing with this form validation method for a while and have tried an array of things but haven't had any luck with a couple items. 1. The validateForm() function doesn't detect when the Min price is greater than the maximum price. 2. The validateForm() function doesn't call isNumber() on the minBaths, maxBaths, minBeds, or maxBeds. 3. Despite errors in input and the validateForm() function returning false, the form is still...
13
3221
by: Martin Dennett | last post by:
Hi I'm new to this group so go easy on me! I currently use a database that has had one constant niggle for a while and I was wondering if anybody can help sort it out. From an opening screen there is an option to search for a particular record. The search criteria is entered into a text box. A form is presented over the top of the opening screen with the query results and an option is then given for another search. This results in the...
15
4657
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any field to start. If I edit that field and then click on the new record button in the navigation buttons, the form goes to a new record and each field has the default value of the previous record. If I put the focus in any field to start, edit that...
8
11334
by: Susan Bricker | last post by:
Hi. I am opening a form (frmUserSettings) just before (or so I thought) the Main Menu form (frmMainMenu) is opening but it's not getting the focus. It gets "painted" and then the Main Menu gets "painted" right on top of the frmUserSettings. Since the Main Menu form is smaller (in width and height) I can click on frmUserSettings and get it to the front (focus). But is there a way to do this programmatically? Can you help me? Here is...
0
1187
by: melanieab | last post by:
Hi, I can't begin to understand this one. I have a form with a tabcontrol. When I first enter one of the pages (whether by tabbing or opening the form), I say to focus on a button. It does focus on that button but you wouldn't know it by looking at it (the dotted rectangle isn't there). I noticed that when the Tab key was pressed, the focused button will highlight, so when opening the form, I focused on the button next to the one I want...
3
1554
by: sravan_reddy001 | last post by:
i want to prevent a form from closing.. to do this i want to handle the formClosing or FormClosed events. from here i want to prevent the form from closing. New instance of same form should not be used. is there any way to do this? is it posiible to do the same thing with anycode?
5
2546
by: plumba | last post by:
Hi all I have a form (see below), which for some reason has decided to stop functioning all together. It just does not call up the function. It is called up in the opening <form> tag but fails.... Any ideas??? <html> <head><title>New Details</title> </head> <center> <H2><IMG SRC="$(path)smlogo.gif"><br>
5
8808
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract packages' that include as attachments: a contract (PDF or TIF), a pricing tool (Excel), a companion document (Word). Clerks detach these files into a shared drive file on our intranet. I'm building an 'contract package management' application...
3
4308
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred in \anmeldung2.cfm: line 404
0
8823
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9343
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9198
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9047
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5967
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.