what problems !! Me_comm236_Enabled_True

tanatif

Registered User.
Local time
Today, 15:05
Joined
Feb 10, 2016
Messages
40
hi my friends

i have form and some bottom i take it not allowed for some users i use case for that

Code:
Sub Security(userLevel As Integer)
Select Case userLevel

    Case 1, 3, 5   'view and edit
Me.comm206.Enabled = True
Me.comm236.Enabled = True
    
    Case 2, 4   'view only
Me.comm206.Enabled = false
Me.comm236.Enabled = false

End Select
End Sub

please see the Attachments where the problems in false enabled the command206 and 236 the pic no1 take it gray color and pic2 take bad color not like it

attachment.php


attachment.php


and by take true command its normal good
i wont all after false take me gray uncolor
please help me where is the problems
 

Attachments

  • commfalse.jpg
    commfalse.jpg
    28.7 KB · Views: 192
  • commtrue.jpg
    commtrue.jpg
    31.5 KB · Views: 183
I don't understand your post. Are you saying you don't want the picture to turn to black and white when disabled? If so how do you want to indicate that the button is disabled?

I don't know if this behavior can be easily changed. You might have to used some global flags to indicate the buttons state.
 
I don't understand your post. Are you saying you don't want the picture to turn to black and white when disabled? If so how do you want to indicate that the button is disabled?

I don't know if this behavior can be easily changed. You might have to used some global flags to indicate the buttons state.

Yes, I want like that. But I want her all black and white why one black and white and other colors mixed all in disabled

want the picture to turn to black and white when disabled

put why not same pic 1 and pic 2 if the picture disabled
i wont all them if desabled chang to black and white

all problems in pic 2
 
I took the image you posted, edited and save it in Paint as a BMP picture, added to an Access button, disabled the button and the result was:

attachment.php


So maybe there's something wrong with your button image. I suggest opening it in Paint and save it as a BMP Picture, and then added in back in the button. See what that does.
 

Attachments

  • MeComm236Disabled.jpg
    MeComm236Disabled.jpg
    10.4 KB · Views: 167
I took the image you posted, edited and save it in Paint as a BMP picture, added to an Access button, disabled the button and the result was:

attachment.php


So maybe there's something wrong with your button image. I suggest opening it in Paint and save it as a BMP Picture, and then added in back in the button. See what that does.

its same problems
i try save by paint 16 color and 24 color and 256 color :banghead:

i remember the pic 1 i do that by MS access 2010 and i emport the form by MS access 2013

ok all there i try that again but no solutions :(
 
Please help any solutions !!

No answers !!
 
Could you upload the image you are having a problem with?
 
I put those images in a form in the attached database and when the button are disable the images turn black and white and shown below.

attachment.php


Please try the attached database on your system and let me know what it does.

What version of Access and Windows are you using. I'm using Access 2013 and Windows 7.
 

Attachments

Same withe me
I'm using Access 2013 and Windows 7
And I'm using Sql server DB and access forms
Now what i do ?!
 
Same withe me
I'm using Access 2013 and Windows 7
And I'm using Sql server DB and access forms
Now what i do ?!
How did the database I attached work on your system? Did the button images change correctly?
 
How did the database I attached work on your system? Did the button images change correctly?

yes its very very good in your attathment db

why in my form not work !?? :confused:

i try with another pc but same form >>> same result no solutions :mad:

what you think >> where the problems in form properties
 
Next thing I suggest to try is to import the form from the database I sent you into you database. If my form doesn't work right in your database then we know it's something in the application. If it's Ok then somethings wrong with your form or button control. In that case I suggest comparing all the properties in my button control with the properties of your button control. Then compare the property of the forms.

You could also upload your database or create a new database, import the problem form, and upload it. Then I could try it on my system and see if I can figure it out.

You also could try rebuilding the form form scratch.
 

Users who are viewing this thread

Back
Top Bottom