G
Guest
This is a repost that Elwin couldn't help me with. Any suggestions out there
I'm getting an application error on closing a form in Access2000 (Win2000 Pro, SQL Server 2000 back end, VB.net on same computer). It's happened before with list boxes on this form, and as soon as I remove the list boxes and code the error goes away. The form and list box work great while I'm using them but then it crashes Access on closing the form
Error
Application Erro
The instruction at "0x30088859" referenced memory at "0x09e2068c". The memory could not be "read"
I tried repairing Office and it did nothing. I tried putting the controls and code into a new form and it worked for a little bit and then it happened again. It seems to be caused by my setting the RowSource property for the ListBox from VBA. I need to set the row source property from code, and this ends up generating an error. Is the form corrupt? I've seen that this is a 'known' bug...
If I take out the following code
me.desclist.rowsource = "EXEC proc....... filter1, filter2
me.desclist.requer
Then I don't get the error
If I set the RowSource property to
proc_fltinfo 116,
then the listbox works, but I can't filter it with the inputparameters
I'd like a way to set the RowSource to:
Exec proc_fltinfo Forms![frm1]![filter1], Forms![frm1]![filter2
but it won't let me use the forms declaration in the RowSource like it would if this were native Access. I found article "Microsoft Knowledge Base Article - 201962" that shows something similar happening in Access 97 when you change the RowSourceType property in code. Interestingly, I haven't changed this property. I've got it set to View/StoredProcedure and I keep it there. I also have tried with using a ValueList RowSourceType populated from a getstring of the desired recordset instead of a direct command. Still not getting it...
I'm getting an application error on closing a form in Access2000 (Win2000 Pro, SQL Server 2000 back end, VB.net on same computer). It's happened before with list boxes on this form, and as soon as I remove the list boxes and code the error goes away. The form and list box work great while I'm using them but then it crashes Access on closing the form
Error
Application Erro
The instruction at "0x30088859" referenced memory at "0x09e2068c". The memory could not be "read"
I tried repairing Office and it did nothing. I tried putting the controls and code into a new form and it worked for a little bit and then it happened again. It seems to be caused by my setting the RowSource property for the ListBox from VBA. I need to set the row source property from code, and this ends up generating an error. Is the form corrupt? I've seen that this is a 'known' bug...
If I take out the following code
me.desclist.rowsource = "EXEC proc....... filter1, filter2
me.desclist.requer
Then I don't get the error
If I set the RowSource property to
proc_fltinfo 116,
then the listbox works, but I can't filter it with the inputparameters
I'd like a way to set the RowSource to:
Exec proc_fltinfo Forms![frm1]![filter1], Forms![frm1]![filter2
but it won't let me use the forms declaration in the RowSource like it would if this were native Access. I found article "Microsoft Knowledge Base Article - 201962" that shows something similar happening in Access 97 when you change the RowSourceType property in code. Interestingly, I haven't changed this property. I've got it set to View/StoredProcedure and I keep it there. I also have tried with using a ValueList RowSourceType populated from a getstring of the desired recordset instead of a direct command. Still not getting it...