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

closing a db with an error

i have a db that i'm trying to finalized so i can get it out to 3 other
branch offices. when i was testing it, i found an error that i don't know
how to describe well, let alone fix. basically, i have one form that i use
to open all the other forms for the db. this one form, formlauncher, goes
visible=false every time another form opens, and in the closing codes of the
various other forms and reports is set to visible=true again. the problem is,
when one of the incidental forms is opened, and the program is closed (the
close button on access itself is clicked), it comes up with an error and
prompts you to either close or debug the code. no matter which option you
chose, it will close the whole program anyway. any ideas?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200512/1
Dec 6 '05 #1
1 937
Br
ka******@comcast.net via AccessMonster.com wrote:
i have a db that i'm trying to finalized so i can get it out to 3
other
branch offices. when i was testing it, i found an error that i don't
know how to describe well, let alone fix. basically, i have one form
that i use to open all the other forms for the db. this one form,
formlauncher, goes visible=false every time another form opens, and
in the closing codes of the various other forms and reports is set to
visible=true again. the problem is, when one of the incidental forms
is opened, and the program is closed (the close button on access
itself is clicked), it comes up with an error and prompts you to
either close or debug the code. no matter which option you chose, it
will close the whole program anyway. any ideas?


Why not just close and reopen the form when needed?

Your code that runs when whatever form is closed must be causing the
problem. It would be helpful showing us the code.

You should have some error trapping code in it too. If you want to
"cludge" it put "On Error Resume Next" in the code (but that's bad
programming).
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Dec 7 '05 #2

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

Similar topics

4
by: flupke | last post by:
Hi, I have a gui (made in wxPython) that enables a user to connect to a server and issue some commands. The problem occurs when i try to disconnect the client. It exits but it doesn't return to...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
6
by: Al the programmer | last post by:
I want to catch the Closing event for my form. I created a test windows app using the wizard. I then create the Closing event by clicking the lightning bolt on the properties pane. The code is...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
by: Cedric | last post by:
Hello, I have a form that could be closed by a code keyed or selected in a combobox but when I select my code my program end up with an error (NullReferenceException) and not when I keying the...
2
by: Tom | last post by:
How is the best way to avoid validation when closing a window? For instance, I have a Windows Forms window which has a validation event for a text box. However, if one enters invalid data in then...
2
by: sajones | last post by:
Hi, I have a simple routine that populates a textbox with the value selected on a listbox: Private Sub lstUsers_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As...
0
by: Jono | last post by:
Hello, I've been getting this message when closing excel (not necessarily when closing the workbook by itself, but when closing Excel and the workbook at the same time): ...
14
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
4
Fr33dan
by: Fr33dan | last post by:
Hi, I'm having trouble with a multi-threaded program crashing on a specific machine when the worker thread is not initialized at when the _FormClosing method of my main form called. Here is my...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.