G
Guest
When launching a form, access closes and asks to send an error report to
Microsoft.
I have the following code in the On Load event of the form:
DoCmd.GoToRecord acDataForm, "frmInvoiceMainLime", acNewRec
Me.txtPurchaseOrder = "hello"
PurchaseOrder is a bound textbox control on frmInvoiceMainLime.
If I comment out either line, Access is fine, and does not crash. If I have
both lines in, Access crashes everytime.
Anything wrong with using the GoToRecord method in a form's On Load event?
Or is there anything wrong with setting the value of a bound control during
the On Load event?
I suspected that my database is possibly corrupt, because this is not making
any sense. I made sure the Name Autocorrect boxes are unchecked on the
Tools, Options, General tab. I've Compacted and Repaired. I've also tried
decompiling. No luck.
Any ideas? Thanks in advance.
Dan
Microsoft.
I have the following code in the On Load event of the form:
DoCmd.GoToRecord acDataForm, "frmInvoiceMainLime", acNewRec
Me.txtPurchaseOrder = "hello"
PurchaseOrder is a bound textbox control on frmInvoiceMainLime.
If I comment out either line, Access is fine, and does not crash. If I have
both lines in, Access crashes everytime.
Anything wrong with using the GoToRecord method in a form's On Load event?
Or is there anything wrong with setting the value of a bound control during
the On Load event?
I suspected that my database is possibly corrupt, because this is not making
any sense. I made sure the Name Autocorrect boxes are unchecked on the
Tools, Options, General tab. I've Compacted and Repaired. I've also tried
decompiling. No luck.
Any ideas? Thanks in advance.
Dan