Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why does this error come up?

Status
Not open for further replies.

simran1

Programmer
Apr 23, 2002
82
US
Hi,
I am trying to show a datareport.
After i execute the command datareport1.show, why do i get this error
"The instruction atc "0x1f326bic" referenced memory at "0x00000000". The memory could not be read".
Some reports are shown without any problem and some show up this error. What could be the problem? How do i resolve this?
I appreciate any help on this topic.
 
Are you getting the fault with the compiled exe or in the design environment?
If the former, try running it in the latter and when it stops you should see where the problem is by selecting debug
 
Hi,
I get this error in the design environment. With the degugger i see that the trace passes datareport1.show and at my next stmt is "end sub". This is where it throws me the error. I worked on this report about 2 weeks ago, when i was developing it. It waorked absolutely fine. I have seen how my reports look like. Now all of a sudden when i was testing, am facing this bug.
 
You are probably getting data into some fields that are not the type the report expects, like trying to sum columns that contain a non numeric character or a date when it should be an integer or something.
Check that all columns are formatted the type the report will expect so wrong data cannot be entered in the first place or use a function to convert wrong data to a zero number or blank string.
If you consistently get an error on one batch of data, you could progressively temporarily remove fields or expressions from the report until the error goes away (but only try this out on a spare copy of the your code!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top