Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Modules & VBA

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-06-2007, 01:16 PM
eugz eugz is offline
Registered User
 
Join Date: Aug 2004
Posts: 91
eugz is on a distinguished road
MouseUp change color label

Hi All.
I crated form with 2 lable. When user click lable he/she has ability to open report. How to chage a color of lable when mouse up on a lable?
Thanks
Reply With Quote
Sponsored Links
  #2  
Old 08-06-2007, 01:19 PM
Rabbie's Avatar
Rabbie Rabbie is offline
AWF VIP
 
Join Date: Jul 2007
Location: In Exile in Wiltshire
Posts: 4,658
Rabbie has a spectacular aura aboutRabbie has a spectacular aura aboutRabbie has a spectacular aura about
Use the onMouseup event of the object.
Reply With Quote
  #3  
Old 08-06-2007, 01:27 PM
eugz eugz is offline
Registered User
 
Join Date: Aug 2004
Posts: 91
eugz is on a distinguished road
Thanks for replay.
When I click the label color is changed, but I would like when MouseUp color change and when mouse out label retrive previouse color. My current code is:
Code:
Private Sub lblSummary_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.lblDelivery.ForeColor = "16711680"
End Sub
Thanks.
Reply With Quote
  #4  
Old 08-06-2007, 02:02 PM
Rabbie's Avatar
Rabbie Rabbie is offline
AWF VIP
 
Join Date: Jul 2007
Location: In Exile in Wiltshire
Posts: 4,658
Rabbie has a spectacular aura aboutRabbie has a spectacular aura aboutRabbie has a spectacular aura about
Read up MouseMove in the Access Help file
Reply With Quote
  #5  
Old 08-07-2007, 08:46 AM
eugz eugz is offline
Registered User
 
Join Date: Aug 2004
Posts: 91
eugz is on a distinguished road
Hi All.
Can someone show me how to code it.
Thanks.
Reply With Quote
  #6  
Old 08-07-2007, 08:52 AM
Rabbie's Avatar
Rabbie Rabbie is offline
AWF VIP
 
Join Date: Jul 2007
Location: In Exile in Wiltshire
Posts: 4,658
Rabbie has a spectacular aura aboutRabbie has a spectacular aura aboutRabbie has a spectacular aura about
Do some research or you will never learn.

Hint. look at how you did the the Mouseup event.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change session.contents supmktg ASP and ASP.NET 0 01-16-2007 01:11 PM
On Change blueboron Forms 3 10-08-2006 11:22 PM
Change text Color rgreene General 1 02-05-2003 09:16 AM
How Can I Change The Print Device For A Report Using Code jbonacorda Modules & VBA 2 11-25-2002 02:52 AM


All times are GMT -8. The time now is 07:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World