Hi all, thanks to those who take the time to keep reading...
I found a similar solved thread here... https://www.accessforums.net/access/...form-8521.html
But i'm pretty new at access and i can't quite figure out if my issue is the same... I have a table with a column that is populated by an update query. It populates a "Yes" value if it finds a corresponding record in another table and "0" if it doesn't. I would like to make these values hyperlinks which open a subform showing the related records, if any exist, and a blank form if they do not.
I almost had this working when populating with the ID variable rather than "yes/0", but I got stuck where there were multiple corresponding records. I could only get it to populate the first ID# and the hyperlink would open a subform showing only that single corresponding record. I thought maybe if I made it like a "Yes/No" instead of a specific ID# it might show all associated records in the subform, but i got all messed up somewhere along the way and now i can't even get back to where it was kind of working.
I started based on this piece of code I found online (see link) while trying to figure out how to do this....http://ms-access-tips.blogspot.ca/20...n-form-at.html
The code from this example on this site is as follows and is in the OnClick event for the 'Servicing' field on the 'FolioDetails' form.
On Error GoTo myError
Dim varWhereClause As String
varWhereClause = "ID = " & Me!productId
DoCmd.OpenForm "frmProducts", , , varWhereClause
leave:Exit
SubmyError:MsgBox Error$
Resume Next
My main form is called 'FolioDetails' and is created from a table with the same name. The yes/no hyperlink field in this form is named 'Servicing' and has Yes or 0 as values. The form i want these hyperlinks to open is called 'Servicing' and is created from a table with the same name. All of these forms by the way are datasheet style.
The linked field between these two tables is named Area/Jur/Roll and is a 13 digit number, but is data type Text, as it could potentially start with a zero.
The goal here is to be able to click on a "Yes" hyperlink and open a subform showing all (could be multiple) related records from the 'Servicing' table. Do I need to create a new query for this form to find only the servicing records with the same Area/Jur/Roll value as the one related to the activated hyperlink for my subform to display?
Thanks again!
Joe