Disable filed condition

T

tom

Hi, I want to disable the field depens on other field input as below:

data 1 data2
A Enable the field for input
B Enable the field for input
C Disable the file for input

I try below only work for condition either one in data1
Me.data2.Enabled = (Me.status = "A")

Below is error
Me.data2.Enabled = (Me.status = "A" or "B")

Regards
Tom
 
T

tom

Sorry, fixed it ... Thanks you very much!

tom said:
Dear KC-mass,

When I apply below

Me.Data2.Enabled = IIF(Data1 ="A" OR Data1 = "B",True,False )

error as (2164) and above highlight in Yellow colors

Regards
Tom
 
T

tom

Dear KC-mass,

When I apply below

Me.Data2.Enabled = IIF(Data1 ="A" OR Data1 = "B",True,False )

error as (2164) and above highlight in Yellow colors

Regards
Tom
 

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

Top