T
tstew
Hello,
The following code gets me close, but not quite. When this runs, I get an
error that the field doesn't exist. It's reading the text in the field as if
it's a field name. I'm just trying to copy the text string from Pic_Location
to the clipboard when I enter an unbound text box so it's ready to insert
into the next chosen record. The code is:
******************************************
Private Sub txtFilterAddress_Enter()
If Not IsNull(Me.Pic_Location) And Not (Me.Pic_Location) = "JL No Pic"
And Not (Me.Pic_Location) = "no pic" Then
DoCmd.GoToControl (Pic_Location)
DoCmd.RunCommand acCmdCopy
End If
End Sub
*******************************************
My reasoning for triggering the event on enter of the text box is that is
the last action performed on this record before selecting the next record.
Any ideas?
Thanks,
Mark
The following code gets me close, but not quite. When this runs, I get an
error that the field doesn't exist. It's reading the text in the field as if
it's a field name. I'm just trying to copy the text string from Pic_Location
to the clipboard when I enter an unbound text box so it's ready to insert
into the next chosen record. The code is:
******************************************
Private Sub txtFilterAddress_Enter()
If Not IsNull(Me.Pic_Location) And Not (Me.Pic_Location) = "JL No Pic"
And Not (Me.Pic_Location) = "no pic" Then
DoCmd.GoToControl (Pic_Location)
DoCmd.RunCommand acCmdCopy
End If
End Sub
*******************************************
My reasoning for triggering the event on enter of the text box is that is
the last action performed on this record before selecting the next record.
Any ideas?
Thanks,
Mark