Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Software Development
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
SQL command freezes Access 2007

Reply  
Thread Tools
zionshea's Avatar
Member with 38 posts.
 
Join Date: Aug 2007
30-Jun-2009, 09: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 at 02:22 AM..
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
02-Jul-2009, 06: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 80 posts.
 
Join Date: Oct 2003
06-Jul-2009, 05: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
Member with 38 posts.
 
Join Date: Aug 2007
06-Jul-2009, 05: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
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
06-Jul-2009, 06: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 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
07-Jul-2009, 01:57 PM #6
Rollin, more than likely if it runs a bit.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:38 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.