Solved

Access update query just stopped working ?

Posted on 2007-03-30
4
295 Views
Last Modified: 2008-02-01
Experts,
I have been working on an ms access application for about 3 years, and all of a sudden, one of the first update statements that I created about 2 years ago just starting hanging, and I can't figure out why.  Please see the query below:

UPDATE mjm_attend_pay_indiv AS z SET z.deposit_flg = -1
WHERE z.row_id in
(
SELECT API.ROW_ID
FROM
MJM_SCHOOL AS S, MJM_CLASS AS C, MJM_STUDENT AS ST, MJM_ATTEND_PAY_INDIV AS API, qry_Deposit_Slip_Total_Num AS TN, qry_Deposit_Slip_Amount AS A
WHERE
S.ROW_ID=C.SCHOOL_ID And
C.ROW_ID=ST.CLASS_ID And
ST.ROW_ID=API.STUDENT_ID And
S.ROW_ID=TN.ROW_ID And
S.ROW_ID=A.ROW_ID And
ST.ACTIVE_FLG=-1 And
API.PAID_FLG=-1 And API.DEPOSIT_FLG=0

pulled apart the update statement.  The subquery works properly and returns 35 rows, and if I take out the subquery and hardcode values the update works.  It just doesn't work together.  Why would that be?  Why would something that hasn't been updated in years, just start hanging?  It doesn't error, it doesn't do anything, it just hangs eternally.  Is there anything else that I can do, or try.  I tried changing around the query, but I have a feeling it is something else.  In the past I had an issue, and it turned out to be a random module that was causing a problem.  I delete all of modules, and that didn't help this time.

Any sugestions would be much appreciated.

Thanks,
Mike
0
Comment
Question by:uconnfb13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 75
ID: 18821962
I assume the missing right paren after _FLG=0  is just a cut and paste error?

"and it turned out to be a random module that was causing a problem"

What exactly do you mean by that?

Any change you have any **missing References ?

mx

0
 

Author Comment

by:uconnfb13
ID: 18822020
Yes, the ")" was just a cut and paste error.  I have been calling this update query for about 2 years, and all of a sudden the query just started hanging.

What I meant about the module was that.  In the past I had a random issue with a query that was throwing an error, and the problem turned out to be a completely unrelated module that I created, that was just causing an issue.  It doesn't make sense to me why that would happen, but I thought I would throw that in there also.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 18822030
Do you have any **missing References ?

If not, then >>>

For fun, try a **DeCompile** is on order ... with your modules in

Follow this procedure:

1) Compact and Repair
2) Execute the Decompile >> you database will reopen
3) Close the mdb
4) Open the mdb ... and then do a Compile.
5) Close
6) Compact and Repair one more time

Try this and see what happens

Here are sample 'links'.  Adjust your paths and file names accordingly:

Run this from Start>>Run.

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access2000Clients\GoldstandtSma\App\SmaApp2K.mdb


"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access80Clients\GoldstandtPdm\App\PdmAppl8.mdb

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access80Clients\GoldstandtSma\App\SmaAppl8.mdb

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access80Clients\HMC\App\AimAppl8.mdb

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile "C:\Program Files\Microsoft Office\Office\AdiSML80.mda"



mx
0
 
LVL 75
ID: 18862585
So ... decompile did fix this ?

mx
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question