dbTalk Databases Forums  

unable to put an option group on a subform without crash

comp.databases.ms-access comp.databases.ms-access


Discuss unable to put an option group on a subform without crash in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sparks
 
Posts: n/a

Default unable to put an option group on a subform without crash - 08-11-2010 , 08:12 AM






I have 1 subform in an access 2003 database that any time I put a
option group on it and hit save the database crashes.
Any other type of control is not a problem. Check box, toggle button
.....etc
I have even put about 10 different types of controls on the form tied
to variables and still it works fine.But not an option group

The subform is tied to a table with 12 variables and there are 16
controls on the subform.

I can put the same option group on any other form and save with no
problems.

Reply With Quote
  #2  
Old   
tom7744.no.spam@cox.net
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-11-2010 , 09:01 AM






On Wed, 11 Aug 2010 08:12:31 -0500, sparks <sparks (AT) home (DOT) com> wrote:

You seem to have some form of corruption. Repair&Compact the database.
If that does not help, export this form to text using the undocumented
Application.SaveAsText method. Then import all objects except this one
to a new database using the normal "External Data" method, and import
this one using LoadFromText.

-Tom.


Quote:
I have 1 subform in an access 2003 database that any time I put a
option group on it and hit save the database crashes.
Any other type of control is not a problem. Check box, toggle button
....etc
I have even put about 10 different types of controls on the form tied
to variables and still it works fine.But not an option group

The subform is tied to a table with 12 variables and there are 16
controls on the subform.

I can put the same option group on any other form and save with no
problems.

Reply With Quote
  #3  
Old   
sparks
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-11-2010 , 02:07 PM



Repair did nothing to help this.
Very strange since I can drop that control on any form in the database
and its fine except this one.
I made a new form and put all the controls on it. Saved and exit
went in and added the option group and it worked fine.
What type of corruption is this called, when you can add anything to a
form but one type of control?
micro what LOL

I have tried the saveastext before but how do you load only the one
control we are talking about ?


On Wed, 11 Aug 2010 07:01:40 -0700, tom7744.no.spam (AT) cox (DOT) net wrote:

Quote:
On Wed, 11 Aug 2010 08:12:31 -0500, sparks <sparks (AT) home (DOT) com> wrote:

You seem to have some form of corruption. Repair&Compact the database.
If that does not help, export this form to text using the undocumented
Application.SaveAsText method. Then import all objects except this one
to a new database using the normal "External Data" method, and import
this one using LoadFromText.

-Tom.


I have 1 subform in an access 2003 database that any time I put a
option group on it and hit save the database crashes.
Any other type of control is not a problem. Check box, toggle button
....etc
I have even put about 10 different types of controls on the form tied
to variables and still it works fine.But not an option group

The subform is tied to a table with 12 variables and there are 16
controls on the subform.

I can put the same option group on any other form and save with no
problems.

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-11-2010 , 02:43 PM



sparks wrote:

Quote:
Repair did nothing to help this.
Very strange since I can drop that control on any form in the database
and its fine except this one.
I made a new form and put all the controls on it. Saved and exit
went in and added the option group and it worked fine.
What type of corruption is this called, when you can add anything to a
form but one type of control?
micro what LOL
I call it .44 magnum corruption. Do you feel lucky?

Reply With Quote
  #5  
Old   
David W. Fenton
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-11-2010 , 03:57 PM



sparks <sparks (AT) home (DOT) com> wrote in
news:01t5669qntrk6gogbqsj9c423iq5r2fj80 (AT) 4ax (DOT) com:

Quote:
Repair did nothing to help this.
That's not surprising. It would be a very, very unusual situation
that corruption of the Jet/ACE data structures would cause a crash
on actions taken in form design. Only corruption of the VBA project
could lead to that, and a compact is not going to have any effect on
that whatsoever.

Quote:
Very strange since I can drop that control on any form in the
database and its fine except this one.
I made a new form and put all the controls on it. Saved and exit
went in and added the option group and it worked fine.
What type of corruption is this called, when you can add anything
to a form but one type of control?
micro what
Did you simply ignore the rest of the instructions you were given to
try SaveAsText? Or did you just choose not to mention it in your
answer?

I wouldn't bother with that until I'd done a decompile, though.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #6  
Old   
Access Developer
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-11-2010 , 11:47 PM



"Salad" <salad (AT) oilandvinegar (DOT) com> wrote

Quote:
I call it .44 magnum corruption. Do you feel lucky?
I thought Dirty Harry asked, "Feel lucky, punk?" <GRIN>

Reply With Quote
  #7  
Old   
Salad
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-12-2010 , 12:15 AM



Access Developer wrote:

Quote:
"Salad" <salad (AT) oilandvinegar (DOT) com> wrote

I call it .44 magnum corruption. Do you feel lucky?

I thought Dirty Harry asked, "Feel lucky, punk?" <GRIN


From the source. Enjoy.
http://www.youtube.com/watch?v=FnMLGkj91Og

Reply With Quote
  #8  
Old   
sparks
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-12-2010 , 08:15 AM



Well the dump would not include the offending control I am trying to
put on the form. As soon as it is placed on the form the program
crashes.

So basically you would just save and import just like copying all the
controls to a new form like I did.



On 11 Aug 2010 20:57:48 GMT, "David W. Fenton"
<NoEmail (AT) SeeSignature (DOT) invalid> wrote:

Quote:
sparks <sparks (AT) home (DOT) com> wrote in
news:01t5669qntrk6gogbqsj9c423iq5r2fj80 (AT) 4ax (DOT) com:

Repair did nothing to help this.

That's not surprising. It would be a very, very unusual situation
that corruption of the Jet/ACE data structures would cause a crash
on actions taken in form design. Only corruption of the VBA project
could lead to that, and a compact is not going to have any effect on
that whatsoever.

Very strange since I can drop that control on any form in the
database and its fine except this one.
I made a new form and put all the controls on it. Saved and exit
went in and added the option group and it worked fine.
What type of corruption is this called, when you can add anything
to a form but one type of control?
micro what

Did you simply ignore the rest of the instructions you were given to
try SaveAsText? Or did you just choose not to mention it in your
answer?

I wouldn't bother with that until I'd done a decompile, though.

Reply With Quote
  #9  
Old   
David W. Fenton
 
Posts: n/a

Default Re: unable to put an option group on a subform without crash - 08-12-2010 , 06:49 PM



sparks <sparks (AT) home (DOT) com> wrote in
news:drs766tin8ftsiv9afaji9o3tnmbh5bj2e (AT) 4ax (DOT) com:

Quote:
Well the dump would not include the offending control I am trying
to put on the form. As soon as it is placed on the form the
program crashes.
The assumption behind the recommendation is that the form is
corrupted, and that saving it out and recreating it would remove the
corruption so that dropping the control on the form would no longer
crash Access.

Quote:
So basically you would just save and import just like copying all
the controls to a new form like I did.
Eh?

If you do a SaveAsText on the form before the control has been
dropped on the form, you would then to a LoadFromText to get an
exact duplicate of that form that should not have any corruption in
it. Then you should be able to drop the option group on it, delete
the old corrupted one and work from the new one.

One thing to check:

Do you have the form wizards turned on? It could be that the wizard
is what's causing the crash. Turn it off and try dropping the option
group on the form.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #10  
Old   
SB 777
 
Posts: n/a

Default SaveAsText/LoadFromText - 10-11-2010 , 10:09 PM



Great tip! This worked a treat for almost the identical problem the original poster had - ie option group causing form to crash out with memory error. Thanks heaps.

Quote:
On Wednesday, August 11, 2010 9:12 AM sparks wrote:

I have 1 subform in an access 2003 database that any time I put a
option group on it and hit save the database crashes.
Any other type of control is not a problem. Check box, toggle button
....etc
I have even put about 10 different types of controls on the form tied
to variables and still it works fine.But not an option group

The subform is tied to a table with 12 variables and there are 16
controls on the subform.

I can put the same option group on any other form and save with no
problems.

Quote:
On Wednesday, August 11, 2010 10:01 AM tom7744.no.spa wrote:

You seem to have some form of corruption. Repair&Compact the database.
If that does not help, export this form to text using the undocumented
Application.SaveAsText method. Then import all objects except this one
to a new database using the normal "External Data" method, and import
this one using LoadFromText.

-Tom.

Quote:
On Wednesday, August 11, 2010 3:07 PM sparks wrote:

Repair did nothing to help this.
Very strange since I can drop that control on any form in the database
and its fine except this one.
I made a new form and put all the controls on it. Saved and exit
went in and added the option group and it worked fine.
What type of corruption is this called, when you can add anything to a
form but one type of control?
micro what LOL

I have tried the saveastext before but how do you load only the one
control we are talking about ?

Quote:
On Wednesday, August 11, 2010 3:43 PM Salad wrote:

sparks wrote:


I call it .44 magnum corruption. Do you feel lucky?

Quote:
On Wednesday, August 11, 2010 8:57 PM David W. Fenton wrote:

That's not surprising. It would be a very, very unusual situation
that corruption of the Jet/ACE data structures would cause a crash
on actions taken in form design. Only corruption of the VBA project
could lead to that, and a compact is not going to have any effect on
that whatsoever.


Did you simply ignore the rest of the instructions you were given to
try SaveAsText? Or did you just choose not to mention it in your
answer?

I would not bother with that until I'd done a decompile, though.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Quote:
On Thursday, August 12, 2010 12:47 AM Access Developer wrote:

I thought Dirty Harry asked, "Feel lucky, punk?" <GRIN

Quote:
On Thursday, August 12, 2010 9:15 AM sparks wrote:

Well the dump would not include the offending control I am trying to
put on the form. As soon as it is placed on the form the program
crashes.

So basically you would just save and import just like copying all the
controls to a new form like I did.



On 11 Aug 2010 20:57:48 GMT, "David W. Fenton"

Quote:
On Thursday, August 12, 2010 11:49 PM David W. Fenton wrote:

The assumption behind the recommendation is that the form is
corrupted, and that saving it out and recreating it would remove the
corruption so that dropping the control on the form would no longer
crash Access.


Eh?

If you do a SaveAsText on the form before the control has been
dropped on the form, you would then to a LoadFromText to get an
exact duplicate of that form that should not have any corruption in
it. Then you should be able to drop the option group on it, delete
the old corrupted one and work from the new one.

One thing to check:

Do you have the form wizards turned on? It could be that the wizard
is what is causing the crash. Turn it off and try dropping the option
group on the form.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Quote:
Submitted via EggHeadCafe - Software Developer Portal of Choice
SharePoint Create List Add/Edit Form Web Part With Custom Toolbar and Attachments Option
http://www.eggheadcafe.com/tutorials...ts-option.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.