473,385 Members | 1,752 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,385 software developers and data experts.

Pop up form sometimes opens behind another, why?

Hello all, im fairly new to access but learing fast and i have written a tuch screen app to record mechanics time and work clockings, it works very well i feel and is a huge improvement on our previous commercial app but i have one issue..
my app runs on a 12" tuch screen monitor attached to a pc, the app runs at start up and the first form to open is a splash, this form then loads a hidden form to keep a query open and save repeating record locking files for speed, next the splash window maximises and loads the main screen as a modal pop up. each action the user makes closes the preceding screen and opens the next (leaving the maximised splash screen open) this method keeps all the pc desktop away from the users and makes it look nice. however every now and then like once in 200 opperations the user hits a button and what ever screen they are using closes as it should but the new screen loads behind the splash.....
the problem is that as the newly opened screen is modal the app wont accept any inupt from the user. I get around this when it happens by fetching out the keyboard and hitting ctrl alt del then canceling it, the appp then displays as it should so i can tell that the form had loaded and it must have been behind the splash.

Any ideas as to how to prevent this randum occurance or if not how to get past it without the use of a keyboard as i hope to run the app from a micro pc in future.
p.s i though about an ontimer event to reopen the main form but you can bet your bottom dollar that this will happen as a user is about to use the screen.
thanks in advance Nick
Apr 20 '12 #1
3 4232
TheSmileyCoder
2,322 Expert Mod 2GB
Sounds weird. I dont have anything off the top of my head, but to ask for some more information:

What version of access are you using?
Are you using a mdb, mde, accdb or accde?
Can you provide an example of the code you use when you switch between forms?
Apr 22 '12 #2
Hi Thanks for the reply
Using Access 2010
file type is accde
mostly using macros to process variables then open new form and then close old form
depending on variables sometimes a macro will runcode() then vba will execute udate statments then the macro will contimue and do the open new form and close old form bit.

i suppose i could stop the macor after the runcode() and then use vba to close and open the forms but its so randum its hard to know why.

i suppose that the sql updates could take too long every now and then and perhaps this causes the error.
And yes i just checked all my forms are opend and closed with macros and some execute vba before the new window is opened and the old one is closed.

Access 2010 makes macros so easy i dont use my brain and write the vba. do you think this could be an issue?
Thanks in advance
Nick
Apr 22 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
I have never used macros besides maybe my first month of using Access. The versatility of VBA is just more powerfull. While there are many actions that could be done by macros, I find that mixing VBA and macros together might be confusing. So therefore I've stuck to keeping all actions in VBA.

I've had some weird issues with timing in Access 2010 as well, and have yet to uncover why. The only suggestion or advice I have to offer currently is to look at the "Wait for post Processing" property of (all) your forms, and try to set that to True/Yes. Im thinking maybe its related to the form(s) not waiting until all code is done. Please report back if this helps any.
Apr 23 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Yang Li Ke | last post by:
Hi guys, let's say I want to load a window behind the main window. how do i do it? because right now everytime i do it the main window gets behind and the new window get the focus. Thank you.
2
by: ruca | last post by:
Hi, I have a user control that have a textbox, a imagebutton and a calendar control's. No hard to see that this usercontrol is a calendar. What happens is that when I click in imagebutton teh...
1
by: gustavo martinez via .NET 247 | last post by:
i need a code that opens up another form in vb.net...ive starttedin a program so farr that is for copy machines and its acontract and i want to input all the information and have a nextbutton where...
16
by: NathyZif | last post by:
I know I know, why would I want to submit the form from server-side code, if the only way to get to the server-side code was BY submitting the form. But that's just it, when the code-behind...
0
by: Jeff Waskiewicz | last post by:
Here is what I am trying to accomplish. I have an MDI application on the left side of the client area I have a borderless form that holds a treeveiw for navigation. When an item is selected from...
2
by: kvicky | last post by:
can anybody tell how to get a form show up in Code behind in C#. If I type something I want a form to show up so that I can enter some values and use those values in my code. Can I do this...
6
by: col | last post by:
Hey, I was looking for some help re: the following- what i want to achieve is to click a button on a form which opens a document specific to the open record. The form is entitled 'employees' and...
1
by: Marcel | last post by:
Hello all, Is it possible to transfer objects derived from a class form one page to another? I made 2 testscripts: person.php ------------------------------------- <?php
1
by: walkcomp | last post by:
I am trying to drag and drop form one DataGridView to another. Also try to drag n drop from one listview to and another the complete row in multi column listview but only get first column.
0
by: indona | last post by:
hi....i have a form on which i have a button, on button click another form opens. now i want to add a grid view control to the second form which opens on button click. the code is like this: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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...

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.