473,320 Members | 2,097 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,320 software developers and data experts.

Form problem..

EMW
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and the
user is returned to the main form, where an image is drawn that the form is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
.. create instance of new form
.. set the textboxes with text from dataset table
.. show the form with showdialog
.. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??
Nov 22 '05 #1
2 1239
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever misunderstandings.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZoft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??

Nov 22 '05 #2
EMW
Hi Cor,

I allready solved it.
I used the wrong events on the radiobuttons...

rg,
Eric
"Cor Ligthert" <no************@planet.nl> schreef in bericht
news:uo**************@TK2MSFTNGP09.phx.gbl...
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever
misunderstandings.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZoft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is
hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes
first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??


Nov 22 '05 #3

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

Similar topics

5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
15
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...
5
by: Steve Strik | last post by:
My Problem: I have created a database here at work that is exhibiting some very strange behaviour. Essentially the database is structured in a manner where one table is a master record table...
1
by: Nico | last post by:
Hi! I use Windows XP and Access 2002 (XP) SP2 (not SP3) My company has not upgraded to SP3. My problem: -I have a form "F_BOMs" -in this form, i have a sub form called "SF_BOMs" -the sub-form...
3
by: dixie | last post by:
I have an Access 2000 form which has been running OK for a long time. Lately, it is playing up and doing things like causing Access to close suddenly when the form is opened or when saving the form...
9
by: Lyn | last post by:
Hi, I have a form which is opened from a button on another form. The form is used to display a list of records from a recordset in Continuous Mode. It is sized vertically to display about 25...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
11
by: ChrisM | last post by:
Hi, Don't know if anyone can cast any light on this... I have a fairly complex C# WinForm with (amongst other) a text box and a button. The TextBox has events declared for KeyUp and KeyDown,...
0
by: hmm | last post by:
Hi all I have two problems: Problem #1: I'm using a .NET Form with the property 'FormBorderStyle' set to 'None'. The idea is to completely cover the area of that Form with a UserControl. In...
1
by: fugaki | last post by:
Hi everyone I'm learning asp, and i downloaded this script to teach me how to post form data from a webpage to an access database. I put it on the server so i could make sure that it worked, and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.