usmc-ratman
Registered User.
- Local time
- Today, 09:07
- Joined
- May 27, 2005
- Messages
- 20
Using Access 2007
• I have a main form (continuous form named 2015CL) & one of the controls on this form is a button (named btn_opn_remarks) that is located in the details section of the form - so there is actually a button visible on each row of each record. When the user clicks the remarks button, it opens a separate form (frm_remarks_main) based off a separate table (named remarks).
• The records in the main form contain the field named "OCA" which is a manditory, unique, non-duplicate field (but not the PK). The remarks main form displays & allows entries that are linked to the "OCA" field through a field in the remarks table named "ocalink".
• I need a way for the remarks button to change colors (or for an icon to become visible) on the main form if there are records in the remarks table that pertain to that particular "OCA".
I think this can be accomplished using an unbound text box and placing it behind the button (making the button transparent), but I cant figure out the code for that unbound text box to read and match "OCA" to "ocalink" in the remarks table, and maybe just return a true or false value to change the background color.
Thanks in advance
• I have a main form (continuous form named 2015CL) & one of the controls on this form is a button (named btn_opn_remarks) that is located in the details section of the form - so there is actually a button visible on each row of each record. When the user clicks the remarks button, it opens a separate form (frm_remarks_main) based off a separate table (named remarks).
• The records in the main form contain the field named "OCA" which is a manditory, unique, non-duplicate field (but not the PK). The remarks main form displays & allows entries that are linked to the "OCA" field through a field in the remarks table named "ocalink".
• I need a way for the remarks button to change colors (or for an icon to become visible) on the main form if there are records in the remarks table that pertain to that particular "OCA".
I think this can be accomplished using an unbound text box and placing it behind the button (making the button transparent), but I cant figure out the code for that unbound text box to read and match "OCA" to "ocalink" in the remarks table, and maybe just return a true or false value to change the background color.
One last thing if possible, and it may be able to be integrated through one routine, I have two other buttons on the main form that open two other forms that are similar to the remarks. The other two forms also have the "ocalink" field. Those table names are susp and RelOCA
If it is not possible to verify entries in multiple tables for the multiple buttons at once, then I would be satisfied with a solution to the single button issue.
If it is not possible to verify entries in multiple tables for the multiple buttons at once, then I would be satisfied with a solution to the single button issue.
Thanks in advance