There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Software Development
Tag Cloud
audio bios blue screen boot bsod computer connection crash dell desktop email error excel firefox freeze freezing google hard drive hardware hijackthis install internet laptop linux malware network no sound outlook problem reboot recovery redirect router screen server slow sound speakers spyware startup trojan usb video virus vista windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
SQL command freezes Access 2007

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
zionshea's Avatar
Junior Member with 21 posts.
 
Join Date: Aug 2007
30-Jun-2009, 08:32 AM #1
SQL command freezes Access 2007
Hello all,

When I run the following SQL statement in MS-Access 2007; application freezes and I only must stop the MS-Access process before I can continue.

select DB.PIN_CODE from DBBBCLADDRESS DB
where DB.PIN_CODE not in (select FL.PIN_CODE from FILEBBCLADDRESS FL);


Please advise what is wrong.

Thanks.

Zion.

Last edited by zionshea : 01-Jul-2009 01:22 AM.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,238 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
02-Jul-2009, 05:23 AM #2
Zion, you should try adding error trapping to the VBA code to see if you can get an error message rather than just hanging.
But it looks as if you have a space between DBBBCLADDRESS and DB which may be causing a problem
Aftab's Avatar
Member with 72 posts.
 
Join Date: Oct 2003
06-Jul-2009, 04:00 PM #3
How many rows are there in the table FILEBBCLADDRESS and is there an index on the PIN_CODE column?
zionshea's Avatar
Junior Member with 21 posts.
 
Join Date: Aug 2007
06-Jul-2009, 04:09 PM #4
Hi Aftab,

There are few tens of thousands in this table and actually I just added an index to that table and the results are somehow better.

I wish the Aftab will shine and smile again on your country...
Rollin_Again's Avatar
Distinguished Member with 3,709 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
06-Jul-2009, 05:40 PM #5
Quote:
Originally Posted by OBP View Post
But it looks as if you have a space between DBBBCLADDRESS and DB which may be causing a problem
Wouldn't the space be required if he was trying to give the table an alias name?

Regards,
Rollin
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,238 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
07-Jul-2009, 12:57 PM #6
Rollin, more than likely if it runs a bit.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:38 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.