Re: Corrupt form...or so it seems

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Reggie (NoSpamreggie_at_NoSpamsmittysinet.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 13:19:31 -0700

Tracy, 2 things come to mind from your description. The first is you stated
that the form is based on a query. Is it possible that the query that the
form is based on uses the values you are changing as criteria? In other
words is the data still in the table, but no longer meets the criteria to be
displayed on the form. Another thing, do you have relationships built that
would cascade updating/deleting etc. joined records in other fields. 2
other things to check/set to make sure the error message pops up. Open the
db in design view. Select Tools/Startup from the main menu. Click the
Advanced button and make sure Use Access Special Keys is selected. Now
press Alt:F11 to open the code window. Select Tools/Options and select the
General Tab. Make sure break on unhandled errors is selected.

-- 
Reggie
----------
"Tracy" <tracy@nacservices.com> wrote in message
news:d688441a.0407221004.1f29a243@posting.google.com...
> Hello All,
>
> First of all, let me thank you for all for the hours of work this
> newsgroup has saved me!  But now I've got a problem I can't find a
> posting for so I need your help.
>
> I've got a form that's corrupting my database...or so I think.
> Sometimes it works fine, but three times now when the user goes to
> edit the data in one of the text boxes the underlying record is
> spontaneously deleted and the table (the customer table...naw that's
> not important) is corrupted.  Repairing the backend has done the trick
> so far, but my client understandably wants a stable program (imagine
> that).
>
> The record deletion is happening when they add to or change text in a
> text field for an existing record (and it's not a problem with the
> text box since it's happened on two different text boxes). My point is
> that it's NOT happening upon saving the record, or even moving to
> another control.  There's no code anywhere in the form to delete the
> record, and Allow Deletions is set to NO.  I don't get a corruption
> error when I open the form, and sometimes it does work fine, but that
> sure sounds like a corrupt form to me. For the record, they tell me at
> the moment it happens that it just "freezes up"...I can't get a
> specific error message out of them, if there is one.  By the time I
> get there, upon opening up the app it gives me an "invalid argument"
> error when it tries to open the default form, which is based on a
> query which pulls from the now corrupt customer table.  Does that
> sound like a corrupt form to you?
>
> So here's my plan.  I'm going to starts with a new db.  Pull in all
> the stuff, *except this friggin' form*, from my existing database and
> rebuild my customer form from scratch.
>
> The problem has only happened on this one form, but is that enough
> information to say that the form, indeed, is the source of the
> problem?  Or could the problem lie in the underlying table?
>
> So should I also build a new backend, or at least a new customer
> table?
>
> Any suggestions would be much appreciated.
>
> Thanks!
> Tracy


Relevant Pages

  • Re: Corrupt form...or so it seems
    ... > <The first is you stated that the form is based on a query. ... > the form that I think is corrupt is the Customers Table. ... it just happens to be where the first error message appears ...
    (microsoft.public.access.forms)
  • Re: Corrupt form...or so it seems
    ... <The first is you stated that the form is based on a query. ... the form that I think is corrupt is the Customers Table. ... Already set to break (an error message could very well be popping up ...
    (microsoft.public.access.forms)
  • Re: Query doesnt always sort
    ... to be happening with multiple databases on a regular basis, ... see this as a corrupt database issue. ... Try using DISTINCTROW in the query. ... reports more or less ignore any sorting done by the query. ...
    (microsoft.public.access.queries)
  • Re: Autonumber preservation
    ... In query design view, enter criteria under the AutoNumber field. ... The crucial aspect is that you must not have it read the corrupt record. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Problem with report using IIF statement
    ... I would add a column in the query ... "Tracy" wrote in message ... > 3) Date de renouvellement - which is a calculated field that depends on ... When I create the report, I enter the IIF statement in the ...
    (microsoft.public.access.reports)