Hi! I have created a record browsing window (data is displayed in datagrid in subform) which includes custom navigation buttons (first, next, last and previous). The custom buttons are disabled as appropriate (e.g. if at the first record, the GoToFirst and GoToPrevious buttons are disabled). All of this works perfectly.
My problem now is if the user clicks on a record directly in the datagrid (subform), say the third record down, the navigation buttons do not change their status - which I know I need to code.
The code that I have which works is in the BrowserForm module and the code needed to accommodate a user clicking on the datagrid needs to be in the subform.
I would like to only have the one peice of code to manage the navigation buttons (enable/disable) but do not where (which module) to store the code, the declaration I need to ensure any aspect of the application can use it or how to call it from the form/subform module.
I know it is a lot of work to write code for navigation buttons which is part of Access, however, I prefer my layout design to the inbuild one.
Could someone please explain what I need to do?
I hope I haven't confused you with my explaination.
Thanking you
Peter
My problem now is if the user clicks on a record directly in the datagrid (subform), say the third record down, the navigation buttons do not change their status - which I know I need to code.
The code that I have which works is in the BrowserForm module and the code needed to accommodate a user clicking on the datagrid needs to be in the subform.
I would like to only have the one peice of code to manage the navigation buttons (enable/disable) but do not where (which module) to store the code, the declaration I need to ensure any aspect of the application can use it or how to call it from the form/subform module.
I know it is a lot of work to write code for navigation buttons which is part of Access, however, I prefer my layout design to the inbuild one.
Could someone please explain what I need to do?
I hope I haven't confused you with my explaination.
Thanking you
Peter