Hi,
I have a form which I have split in two parts: the upper one is the header, it's some general info of a Project (reading from table Project, shown in Form View); the lower one consists of lines, which represent the tasks within the project (a separate form ProjectTasks on table Tasks, shown in datasheet view). Those two are linked through a field ProjectID.
On the main form (form Project) I have a button EditTask. What I want from this button to do is : when clicked it should open a third form (form Tasks) for the task where the cursor in the subform ProjectTasks is.
I tried to create a macro for OnClick, using the OpenForm macro action, but I cannot get it to work. I tried to find some info and examples on how to use the ApplyFilter macro action, but I still don't know if it will do. Last I tried to do it with Opening the form and using the GotoRecord action but it requires the record number, which I couldn't get. I saw there is a property CurrentRecord but I didn't get how to use it in this specific case.
So if you guys have any ideas on how to get this button open the task under the cursor I would appreciate it. Is it possible to achieve this with macros or some VBA code will be needed?
Regards,
Borislav