Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > BOOK: Expert One-on-One Access Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert One-on-One Access Application Development
This is the forum to discuss the Wrox book Expert One-on-One Microsoft Access Application Development by Helen Feddema; ISBN: 9780764559044
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert One-on-One Access Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 8th, 2004, 09:05 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run-time error 7: Out of Memory - Access 2002

I am trying Chapter 11's code to import data from Word tables into Access. However, I get the error listed above. Two months ago I wrote my own code to load data from a Word doc with tables to Access and it worked fine at that time. I haven't changed the code or run it since then but now I am getting the above error. I pasted Helen's code below. The error appears at the CreateObject line. The Word process is created - I can see it in the Task Manager but I can't get past this line.
Can anyone think of why I am getting this error? I would appreciate any suggestions as I am out of things to try.
Thanks. Alexis
ErrorHandler:
   If Err = 429 Then
      'Word is not running; open Word with CreateObject
         Set gappWord = CreateObject("Word.Application")
      Resume Next
   Else
      MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
      Resume ErrorHandlerExit
   End If


Reply With Quote
  #2 (permalink)  
Old October 8th, 2004, 05:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

What was done to the machine (OS upgrade, New Office version, etc.)? Could you try adding virtual memory, or could you check your ram when the program runs?

Brian
Reply With Quote
  #3 (permalink)  
Old October 9th, 2004, 07:45 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Brian. Actually I bought this PC in Feb 2004 (Pentium 4) with XP already loaded and I loaded Office Prof 2000. At the time I wrote my Word load program, I had already replaced Access 2000 with Access 2002. I worked on the Word load program in Access 2002 and it was running fine. Then I put it aside for two months and just got back to it a few days ago and it no longer was working. That's when I tried Helen's Chapter 11 program, which had also worked before on my PC. I did check my RAM before and after. I even did screen shots. I am an applications person, not a great systems person. I can read things and understand the basics but it does seem to me that the available memory is low compared to my total memory. Total physical memory (task mgr) is 523564. Before I run my program, available is 245156 and cache is 31690. During and after I run my program, available is 237992 and cache is 305572. Not much of a difference. I do have virus and spy software running in the background but they were there before too. I haven't made too many changes, if any, to my computer since I originally tested the Word loads the end of July. But who knows. I do live updates to keep my XP service packs to date, and also my virus and spyware. I run sweeps on a regular basis. I do have them set up to run automatically and I may have done that since July. I will disable them and try again. Thanks so much for your help. I was supposed to get done this project by Monday. I have written many complicated VB program loads between Excel and Access and other processing intensive VB programs on my machine and other PC's and have never encountered this problem before so it must be my PC.
Alexis

Reply With Quote
  #4 (permalink)  
Old October 10th, 2004, 12:12 PM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,
I searched the internet, including Microsoft's knowledge base. They talk about this error occuring when the Office Small Business Tools from two different versions of Office are on the same computer. I'm wondering whether my setup of Office 2000 and Access 2002 somehow got messed up. Fortunately, I ordered Office 2003 several days ago. When it arrives, I am going to uninstall all my current Office products and then load Office 2003. Maybe that will help. I'll keep you posted. Thanks again.
Alexis

Reply With Quote
  #5 (permalink)  
Old October 12th, 2004, 12:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think you'll like Office 2003. It's pretty slick.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Run-time error '7': Out of memory mbahfelix Pro VB Databases 1 November 14th, 2007 03:47 PM
run-time error(s) Chacko C++ Programming 0 March 4th, 2007 01:28 PM
Run Time Error JBond Access VBA 0 May 27th, 2004 09:50 AM
RUN-TIME ERROR compcad Beginning VB 6 2 May 21st, 2004 02:01 AM



All times are GMT -4. The time now is 07:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.