J
Jim Jawn
I have an application with 7 main forms, but my application keeps crashing
when I use a large number of docmd.open's and docmd.close's. In one
particular form, every 19th time I click on the "open form" button, the
application crashes and I get one of 1000 assorted error messages. From
what I can tell by searching the internet, this a memory issue. As a
result, I've started loading all of the forms on startup and using the
visible true/false property. I can get all of the main 7 forms open with no
problems and the application is noticably faster now as a result.
However...
In one of the 7 forms, I have a list of all of the "prospects" in a
continuous form with a "view" button that opens up a "Detail" form.
Previously, I would have used this...
DoCmd.OpenForm "frmProspectDetails", acNormal, , "PID = " & lPID,
acFormEdit, acDialog
But because the application keeps crashing after 19 records, I need to find
another way to accomplish this.
I would like to find out how I can make "frmProspects" visible AND move it
to the ID by using the "view" button. I'm stuck. I've tried using a
filter, but I can't seem to get that to work. I've also tried setting a
public GetID function and moving it to the correct record, but I can't seem
to that to work either. I'm looking for any help I can get that could point
me in the right direction. Thanks for your help.
Jim Jawn
when I use a large number of docmd.open's and docmd.close's. In one
particular form, every 19th time I click on the "open form" button, the
application crashes and I get one of 1000 assorted error messages. From
what I can tell by searching the internet, this a memory issue. As a
result, I've started loading all of the forms on startup and using the
visible true/false property. I can get all of the main 7 forms open with no
problems and the application is noticably faster now as a result.
However...
In one of the 7 forms, I have a list of all of the "prospects" in a
continuous form with a "view" button that opens up a "Detail" form.
Previously, I would have used this...
DoCmd.OpenForm "frmProspectDetails", acNormal, , "PID = " & lPID,
acFormEdit, acDialog
But because the application keeps crashing after 19 records, I need to find
another way to accomplish this.
I would like to find out how I can make "frmProspects" visible AND move it
to the ID by using the "view" button. I'm stuck. I've tried using a
filter, but I can't seem to get that to work. I've also tried setting a
public GetID function and moving it to the correct record, but I can't seem
to that to work either. I'm looking for any help I can get that could point
me in the right direction. Thanks for your help.
Jim Jawn