I have designed a database for use in tracking our projects. I've made use of queries to perform calculations that I need and sub-forms and sub-reports to display these calculations. All of my routines and operations work perfectly except for this one strange detail.
When I first open my database and then open my main project form, I am asked to provide the Project ID parameter. I use this parameter to reference the main form for all of the sub-forms and queries, basically to tie the right information together. Since I'm opening the form and it should proceed to record number 1 which holds Project ID 1 in that record and all queries have this form as its criteria, I don't know why it is asking for this. If I hit the cancel button I end up getting to the opened form, but if I advance to the next record I go through this again.
Now here is where it get interesting...if I go to Design View, click any control that has an Event Procedure, go to the properties sheet and click the "..." button next to Event Procedure to open the VBA window, then all I have to do is close the VBA window (mind you I haven't changed anything), then go back to Form View and surprise surprise, everything works correctly. It will continue to work fine until I close the database. At this point I will be asked I would like to save the changes to the form. Mind you that I haven't made any changes to the form, but I've clicked both "Yes" and "No" to this question, but it doesn't change the fact that the next time I open my database I have to go through this again.
Granted, it isn't that big of a deal, but I'm interested in figuring out why this happens and if I can solve it, then I can go to using the switchboard like I want. I've tried the "Repair and Compact" feature but it doesn't help. I didn't know if this is a query issue or a form issue, so I just thought I would ask it here and see if anyone can point me in the right direction.
Thanks in advance!
When I first open my database and then open my main project form, I am asked to provide the Project ID parameter. I use this parameter to reference the main form for all of the sub-forms and queries, basically to tie the right information together. Since I'm opening the form and it should proceed to record number 1 which holds Project ID 1 in that record and all queries have this form as its criteria, I don't know why it is asking for this. If I hit the cancel button I end up getting to the opened form, but if I advance to the next record I go through this again.
Now here is where it get interesting...if I go to Design View, click any control that has an Event Procedure, go to the properties sheet and click the "..." button next to Event Procedure to open the VBA window, then all I have to do is close the VBA window (mind you I haven't changed anything), then go back to Form View and surprise surprise, everything works correctly. It will continue to work fine until I close the database. At this point I will be asked I would like to save the changes to the form. Mind you that I haven't made any changes to the form, but I've clicked both "Yes" and "No" to this question, but it doesn't change the fact that the next time I open my database I have to go through this again.
Granted, it isn't that big of a deal, but I'm interested in figuring out why this happens and if I can solve it, then I can go to using the switchboard like I want. I've tried the "Repair and Compact" feature but it doesn't help. I didn't know if this is a query issue or a form issue, so I just thought I would ask it here and see if anyone can point me in the right direction.
Thanks in advance!