Hi all,
I've created menu in tree view and I'm using it to load another forms.
When I load another form via tree view dblclick event, form loads but if macroes are written in Module and called in form via Application.Run "Module1.NameOfProcedure", that procedure won't run.
Does anyone know how to fix this?
Here are names of form and module so it's easier for you to understand:
frmMainMenu (Main Menu Form)
frmProjectTaskList (Form which is opened by Main Menu Form)
ProjectTaskList (Module which is used to store lot of coding for frmProjectTaskList)
For example, In frmProjectTaskList_Initialization sub, it loads all parts of code where I do .additem in comboboxes, but it doesn't want to run Application.Run "ProjectTaskList.ListAllProjects"
I've tried to switch ListAllProjects to be Public sub and to call it without Application.Run but it also didn't work for run.
Of course, when I run directly frmProjectTaskList, it works just fine.
Please, if you have any ideas, help... I have, like, 20+ different forms which work via ADODB connection to MS Access which I have to load with this Main Menu. I've even coded "Roles" for menu display. It would be such a waste if this can't work...
I've created menu in tree view and I'm using it to load another forms.
When I load another form via tree view dblclick event, form loads but if macroes are written in Module and called in form via Application.Run "Module1.NameOfProcedure", that procedure won't run.
Does anyone know how to fix this?
Here are names of form and module so it's easier for you to understand:
frmMainMenu (Main Menu Form)
frmProjectTaskList (Form which is opened by Main Menu Form)
ProjectTaskList (Module which is used to store lot of coding for frmProjectTaskList)
For example, In frmProjectTaskList_Initialization sub, it loads all parts of code where I do .additem in comboboxes, but it doesn't want to run Application.Run "ProjectTaskList.ListAllProjects"
I've tried to switch ListAllProjects to be Public sub and to call it without Application.Run but it also didn't work for run.
Of course, when I run directly frmProjectTaskList, it works just fine.
Please, if you have any ideas, help... I have, like, 20+ different forms which work via ADODB connection to MS Access which I have to load with this Main Menu. I've even coded "Roles" for menu display. It would be such a waste if this can't work...