Marking a click

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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"
 
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,
 
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?
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top