A
Arlene Swedberg
I have a form that I created in which I populate certain
fields using the possible values method. The form works
fine, but I would like to have it populate fields by
connecting to an MS Access database instead. I started
working in a separate form to get this part working and
now I need to add this additional code to my existing form.
Is there a limit to how much code you can have in an
Item_Open procedure, or does the code have to be in a
particular order? When I add this additional code to my
form to make the database connection, etc., it only works
if I place it before my existing code, which then stops
functioning. When I reverse everything and add the code
that opens the database connection etc. to the end of my
Item_Open procedure, my original code works and the
database connection statements no longer work.
Should I be keeping the code for the database connection
etc. in another procedure and calling it from the
Item_Open procedure? I'm not sure what to do and would
appreciate any help with this.
Arlene
fields using the possible values method. The form works
fine, but I would like to have it populate fields by
connecting to an MS Access database instead. I started
working in a separate form to get this part working and
now I need to add this additional code to my existing form.
Is there a limit to how much code you can have in an
Item_Open procedure, or does the code have to be in a
particular order? When I add this additional code to my
form to make the database connection, etc., it only works
if I place it before my existing code, which then stops
functioning. When I reverse everything and add the code
that opens the database connection etc. to the end of my
Item_Open procedure, my original code works and the
database connection statements no longer work.
Should I be keeping the code for the database connection
etc. in another procedure and calling it from the
Item_Open procedure? I'm not sure what to do and would
appreciate any help with this.
Arlene