A
Adam
I have some code written in the load event of a form in an Access 2000
database. If the database is already open and I open the form, the code runs
just fine.
However, if I set the form as my startup form (as I would like to be able to
do), then the form doesn't seem to finish loading properly (at least the
code doesn't do what it is supposed to do). Then when I try to close the
form, Access crashes and gives the following message:
'MSACCESS.exe has generated errors and will be closed by Windows. You will
need to restart the program.'
Does anyone have any idea what could cause perfectly good code not to run
when it is on a startup form, and what can be done to work around this
problem? The form doesn't try to do anything very complicated, just look up
a value of a variable in a table, and then open another form, the form it
opens depending on what it finds.
Many thanks
database. If the database is already open and I open the form, the code runs
just fine.
However, if I set the form as my startup form (as I would like to be able to
do), then the form doesn't seem to finish loading properly (at least the
code doesn't do what it is supposed to do). Then when I try to close the
form, Access crashes and gives the following message:
'MSACCESS.exe has generated errors and will be closed by Windows. You will
need to restart the program.'
Does anyone have any idea what could cause perfectly good code not to run
when it is on a startup form, and what can be done to work around this
problem? The form doesn't try to do anything very complicated, just look up
a value of a variable in a table, and then open another form, the form it
opens depending on what it finds.
Many thanks