?
Solved

Access update query just stopped working ?

Posted on 2007-03-30
4
Medium Priority
?
296 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 2000 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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…
Suggested Courses

770 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