Thanks RG, that gets me very close to what i'm looking for, but there is still something that Access doesn't like.
I had to modify some names (and may have done so incorrectly) so here is what i have now:
Private Sub JobID_Click()
Dim SQL As String
SQL = "SELECT * FROM tblJobs WHERE JobID = '" & Me.JobID & "'"
Me.Parent.sfJobs.Form.RecordSource = SQL
Me.Parent.tabPublisher = 1
End Sub
When clicking on JobID, it prompts me for the JobID which makes me think that Access can not read the individual control. The JobID that i am clicking is in the details section and therefor is repeated several times down the subform, one JobID for each search result.
It DOES move me to the correct tab, but it's not filtering or bringing up that specific "JobID" that i clicked on (or typed in).
Edit: After reading back through the posts for some answers, i seen that you suggest i try Link Master/Link Child fields. Do these need to be enabled for this to work?
Edit#2: Now i don't even get the prompt, not sure what i did now. When i click "JobID" i am given error 2001 and the debugger highlights this code: Me.Parent.sfJobs.Form.RecordSource = SQL
I had to modify some names (and may have done so incorrectly) so here is what i have now:
Private Sub JobID_Click()
Dim SQL As String
SQL = "SELECT * FROM tblJobs WHERE JobID = '" & Me.JobID & "'"
Me.Parent.sfJobs.Form.RecordSource = SQL
Me.Parent.tabPublisher = 1
End Sub
When clicking on JobID, it prompts me for the JobID which makes me think that Access can not read the individual control. The JobID that i am clicking is in the details section and therefor is repeated several times down the subform, one JobID for each search result.
It DOES move me to the correct tab, but it's not filtering or bringing up that specific "JobID" that i clicked on (or typed in).
Edit: After reading back through the posts for some answers, i seen that you suggest i try Link Master/Link Child fields. Do these need to be enabled for this to work?
Edit#2: Now i don't even get the prompt, not sure what i did now. When i click "JobID" i am given error 2001 and the debugger highlights this code: Me.Parent.sfJobs.Form.RecordSource = SQL
Last edited: