Marking a click

R

Ryan W

When the user clicks within a form I want the ability to mark the form. For
example, if user clicks on the form I want a "T" to show up. What would the
code look like?
 
D

Duane Hookom

I think there might be more to this question than you are telling us.
Assuming you have a label control named "lblT" on your form, you can use
code in the On Click event of the detail section:

Me.lblT.Caption = "T"
 
R

Ryan W

Duane,
There is more, just trying to keep it simple. I have a pic of the human body
and want to be able to mark "P" for Pain and "T" for Tenderness. So when the
user clicks the area of the body picture a P or T will show up on the
picture. Hope this makes sense.

Thanks,
 
D

Duane Hookom

This doesn't do much good unless you plan on determining the coordinates and
saving the value. Are you storing anything anywhere or what do you plan on
doing with the Ps and Ts?
 
D

Duane Hookom

I'm not sure you have given much thought to this since how would we know to
display a P or a T? So far, all you need to do is set the image On Click
event as per the code that I suggested earlier.
 
T

Terry Kreft

Well the OP could cycle round he options e.g. ...
Select Case Me.lblT.Caption
Case "T"
Me.lblT.Caption = vbNullstring
Case "P"
Me.lblT.Caption = "T"
Case vbNullstring
Me.lblT.Caption = "P"
End Select

.... but I would agree with you and suspect that they haven't thought this
through.
 
Top