K
Kevin C Niven
I'd like the user to be able to click a text box in the report and go
to the corresponding record.
For example, if my report puts out a line like this:
ID Last First Address
123 Doe John 1234 Main St.
I'd like the user to be able to click the text box with the value
"123" and go to record ID 123 on frmMyForm.
So, the way I've tried to set this up is:
Private Sub Text0_Click()
DoCmd.OpenForm "frmMyForm", , , "ID = Me.Text0.Value"
End Sub
Which does not work. My problem is with "ID = Me.Text0.Value". How
do I correctly insert the numerical value of the text box there?
Thanks,
Kevin
to the corresponding record.
For example, if my report puts out a line like this:
ID Last First Address
123 Doe John 1234 Main St.
I'd like the user to be able to click the text box with the value
"123" and go to record ID 123 on frmMyForm.
So, the way I've tried to set this up is:
Private Sub Text0_Click()
DoCmd.OpenForm "frmMyForm", , , "ID = Me.Text0.Value"
End Sub
Which does not work. My problem is with "ID = Me.Text0.Value". How
do I correctly insert the numerical value of the text box there?
Thanks,
Kevin