473,698 Members | 2,306 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 4194
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
2524
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
3216
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
4655
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
11331
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
1185
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
1552
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
2542
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
8804
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
4306
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
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
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
9014
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...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4358
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
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.