473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error 3183 (Exceeding the 2GB temp file space)

I am a beginner in SQL coding in Access and I have been trying to run a process but it keeps giving me a Run-time error 3183. In the debug, it keeps bringing me to the below query:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunSQL _
  2.     "UPDATE PotintialTOPNiin_tbl " & _
  3.     "SET [80Count] = [80Count] + 1 " & _
  4.     "WHERE niin IN (" & _
  5.         "SELECT d.niin " & _
  6.         "FROM (" & _
  7.             "SELECT CurrentProjection_tbl.niin, " & _
  8.                 "SUM(a.ProjectedSavings)/" & _
  9.                     CurrentProjection & _
  10.                 " AS Contribution " & _
  11.             "FROM CurrentProjection_tbl " & _
  12.             "LEFT JOIN (" & _
  13.                 "SELECT b.niin, c.ProjectedSavings " & _
  14.                 "FROM CurrentProjection_tbl AS b " & _
  15.                 "LEFT JOIN CurrentProjection_tbl AS c " & _
  16.                 "ON b.ProjectedSavings < c.ProjectedSavings) AS a " & _
  17.             "ON CurrentProjection_tbl.niin = a.niin " & _
  18.             "GROUP BY CurrentProjection_tbl.niin) AS d " & _
  19.         "WHERE d.Contribution <= " & Opportunity & _
  20.         " OR d.Contribution IS Null);"
And can't seem to find out what the problem is. This database was already preexisting. Someone please help
Nov 13 '18 #1
3 2284
twinnyfo
3,653 Expert Mod 2GB
sbrd86,

Welcome to Bytes!

Your problem has nothing to do with your Query. It has to do with your file size, which has reached the MS Access maximum of 2 GB (it will not go one byte--not even a bit--over 2 GB).

FIRST MAKE A BACKUP OF YOUR DATABASE!

MAKE SURE YOU HAVE MADE A BACKUP OF YOUR DATABASE!

Before you try running your query again, try compacting and repairing your DB. This is one of the DB options under your File Menu. Because of its size, this may take a few minutes to compact. If, after you compact it, it is still at the 2 GB max limit, you will have to split your DB into smaller parts. This can be a pain, but will be necessary in order for you to do anything with it.

Hope this hepps!
Nov 13 '18 #2
twinnyfo
3,653 Expert Mod 2GB
Also, as a side note, if you are going to use DoCmd.RunSQL, it is always wise to use a String variable, assign your SQL string to that variable and then execute the SQL via the string variable. This allows you to troubleshoot your string (Debug.Print, etc.) should you have any issues.

Most people offer me a penny for my thoughts, but I always throw my two cents in....
Nov 13 '18 #3
NeoPa
32,556 Expert Mod 16PB
Please check out Before Posting (VBA or SQL) Code.
Nov 15 '18 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chancel | last post by:
Hi, I know this isnt the right place to post but I thought maybe some kind soul could help! I'm looking to clean up my pc a bit and get some disk space back. My Temp file in Winnt is very very...
3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
2
by: deko | last post by:
I'm trying to get a temp file name that I can use to save a file to the temp directory. I found this code but can't get it to work. I think the problem has something to do with the MAX_PATH...
0
by: Jeff Dillon | last post by:
When I browse to a simple .aspx page, I get the error: Unable to create temp file in path 'c:\windows\system32\inetsrv\%SystemRoot%\TEMP\': The directory name is invalid. My TEMP variable is...
1
by: hotice3100 | last post by:
I have created an interface for a SQL Reporting Service report. SQL Reporting Service makes a virutal directly in IIS called ReportServer. There are various buttons on the form I created and one...
1
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
10
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able...
0
by: Jeff Dillon | last post by:
When I browse to a simple .aspx page, I get the error below. My TEMP variable is c:\windows\temp My OS is Win2003 Server, Web Edition. Using Visual Studio, I created a one page webform1.aspx...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.