ccondran08
Registered User.
- Local time
- Today, 15:12
- Joined
- Feb 27, 2014
- Messages
- 58
Hi, hoping someone can make my day here and assist. I have a subform table that has a column called "Project" and lists all the project numbers. I have set up a Hyperlink on the field so that when the project number is selected is will open up a new form and transfer the existing hyperlink record value into an unbound textbox that is used as a "Search" field to search other records on the opening subform. I can get subform to open the new form but am not having any luck in parsing/transferring the hyperlink value to the textbox. My code is ;
Private Sub PROJECT_Click()
If (Form.Dirty) Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "frm_Project_Search", acNormal, "", "", acAdd, acDialog
DoCmd.Requery ""
Else
DoCmd.OpenForm "frm_Project_Search", , , "Project = '" & Me.txt_Search & "'"
End If
End Sub
Private Sub PROJECT_Click()
If (Form.Dirty) Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "frm_Project_Search", acNormal, "", "", acAdd, acDialog
DoCmd.Requery ""
Else
DoCmd.OpenForm "frm_Project_Search", , , "Project = '" & Me.txt_Search & "'"
End If
End Sub