There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
"The memory could not be read" in Excel


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
cherry_?!'s Avatar
Junior Member with 29 posts.
 
Join Date: Mar 2005
Experience: Intermediate
04-May-2005, 02:21 PM #1
"The memory could not be read" in Excel
I have an Excel spreadsheet that is going to be used as an entry form and will later update an Access data base (right now it is not linked). After having the user set some default values, they use an entry line made up of text boxes and combo boxes to enter information. They click on an "Update" button and that information is validated and copied to a range of cell's that are protected (records can only be edited in the entry line, not in the display cell range). The records are validated and updated through the use of VBA functions.

The problem I am running into, is that after adding a few records, I receive the following error message: The instruction at "0x6003fbc7" referenced memory at "0x00000038". The memory could not be "read".

Any ideas what could be causing this?

(I am running on a Intel(R) Pentium(R)M with 512 MB of RAM)

The help is much appreciated.
Cherry
cherry_?!'s Avatar
Junior Member with 29 posts.
 
Join Date: Mar 2005
Experience: Intermediate
17-May-2005, 03:53 PM #2
I believe I have found where it is happening in the code, but still not why. I have the KeyDown event evaluating whether it was the tab or enter key being depressed and if so moving to the next field, except with the last field it was prompting the user to add the record and then running the Add routine. If this last tab only prompts a message and the user manually clicks the Add button to call the routine, it no longer gives this error.

I would like to automatically Add the record after the last tab.. Does anyone have any idea how I could avoid this error?
asbo's Avatar
Senior Member with 510 posts.
 
Join Date: Sep 2001
Location: who really knows anymore?
Experience: Advanced
17-May-2005, 08:27 PM #3
I haven't used VBA a whole lot, but is a there a LostFocus event that you could use?
cherry_?!'s Avatar
Junior Member with 29 posts.
 
Join Date: Mar 2005
Experience: Intermediate
18-May-2005, 09:58 AM #4
Okay,I just tried that and it is still causing an error. The thing that I find really weird is that if I click a button that calls the function it works fine.

Any other ideas?
asbo's Avatar
Senior Member with 510 posts.
 
Join Date: Sep 2001
Location: who really knows anymore?
Experience: Advanced
18-May-2005, 07:53 PM #5
Hmm. At that point, it might very well be a bug in Excel itself .. Microsoft doesn't always put out 100% perfect stuff, you know
cherry_?!'s Avatar
Junior Member with 29 posts.
 
Join Date: Mar 2005
Experience: Intermediate
19-May-2005, 10:07 AM #6
Well, that is a possiblity for sure.

Thanks for the thought anyway.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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 09:41 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.