469,645 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

docmd openform command

1
i am using Access2000. Currently i had a main form call "frmDownload" and sub form "fsubAdmmission". Under the fsubAdmmission, i do have another sub form "fsubHospital". Once i link my application to database A, when "frmDownload" loaded, it does successfully create "fsubAdmmission" object and i am able to assign "fsubAdmmission.form.recordsource".

Once i link my application to database B, when "frmDownload" loaded, it failed to assign the recordsource to "fsubAdmmission" due to the "object does not exist or closed". I do debug the application with both of the database. Once execute on docmd openform "frmDownload", , ,"" , i found tat at the first line "frmDownload" loaded (form_load) function, i can access the "fsubAdmission.form.recordsource" at immediate window (for database A).

when i link my application to database B, once execute on docmd openform "frmDownload", , ,"" at the first line of form_load function of frmDownload, when i want to access to the "fsubAdmission.form.recordsource" at immediate window, it does hit error ("object was not created or closed").
i have no idea on wat problem is this..since it does not execute any my own code on the first line of form_load function. i feel that one of the problem is because the subform didnt loaded once the mainform was loaded. Is there any method i can debug into docmd.openform command ? Or anyone know what exactly the problem was? i will appreciate if anyone can give me some suggestion. Thank
Aug 1 '08 #1
1 2408
NeoPa
32,203 Expert Mod 16PB
No, you can't debug into a library routine unless you have the code for it available (IE It's one of your own).

As to why it behaves differently in DatabaseA from DatabaseB that is hard to tell. From what you've told us there is no known difference between the two.

If this were true then there would be no problem. There must be a difference between the two databases and we can't tell you anything about it because we don't have any information about it.

Sorry to be unable to help.
Aug 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Aravind | last post: by
1 post views Thread by Kurt Blom | last post: by
15 posts views Thread by Thelma Lubkin | last post: by
2 posts views Thread by Mike | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.