
tough question for gurus!
Using Acc97, NT4, FE/BE setup - I keep getting the
following error message when I open one of the forms (FE):
Here's the error message:
the instruction at 0x0403c8a3 referenced memory at
0x0a171688. The memory could not be read.
I've tried already tried copying objects into new DB,
decompile, then compile, then compacting. Everything
copies, decompiles, etc. fine. But I still get the error
when I open the form. Here's what's interesting: it works
fine if I step through it in debug mode, but consistantly
crashes if run normally. The form opens fine if I comment
out this section of code. I'm trying to autofill the
user's choices when the form opens...
Here's the bit of code in the onOpen event that's causing
the problems (LotXfer is of user type LotData):
private sub Form_Open (Cancel as Integer)
if Len (me.filter)=0 then
runcommand accmdrecordsgotonew
me.cboselline.setfocuse
end if
If OpenArgs = "RefDT" Then
'error happens when any of the lines between this if
'statement are run outside of debug mode.
Me.cboSelLine = LotXfer.Line
Me.cboToProd = LotXfer.CurrentItem
Me.txtToLot = LotXfer.CurrentLot
Me.txtRIDLineID = GUIDFromString(LotXfer.PKLine)
Me.txtRIDLotRecID = GUIDFromString(LotXfer.PKLot)
Me.cboFromProd = LotXfer.OldItem
Me.txtFromLot = LotXfer.OldLot
End If
end sub
*******************code below is in a standard module
Public Type LotData
CurrentLot As String
OldLot As String
CurrentItem As String
OldItem As String
Line As String
PKLine As String
PKLot As String
PKProd As String
Step As Integer
PKDownID As String
End Type
Thanks!
-hai