Subject: Run-time error 7: Out of Memory - Access 2002
Posted By: alexisb Post Date: 10/8/2004 9:05:56 AM
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 By: bmains Reply Date: 10/8/2004 5:08:16 PM
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 By: alexisb Reply Date: 10/9/2004 7:45:37 AM
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 By: alexisb Reply Date: 10/10/2004 12:12:40 PM
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 By: bmains Reply Date: 10/12/2004 12:11:42 PM
I think you'll like Office 2003.  It's pretty slick.

Go to topic 19997

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738