If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
problem in diabling the command button
I have a button on a form which I want to diable of the record is empty or a new one.
I have put following code in the Current event of form (it is a tabular form). Even if the me.Canumber is Null (it is a string type) it is not diabling the COmman button, the code is as below. Any help? If Me.CANumber = Null Then Me.Command103.Enabled = False |
#2
|
|||
|
|||
problem in diabling the command button
try:
Me!Command103.Enabled = Not IsNull(Me!CANumber) that will enable *and* disable the button, based on whether or not CANumber contains a value. "Diable the command button" wrote in message ... I have a button on a form which I want to diable of the record is empty or a new one. I have put following code in the Current event of form (it is a tabular form). Even if the me.Canumber is Null (it is a string type) it is not diabling the COmman button, the code is as below. Any help? If Me.CANumber = Null Then Me.Command103.Enabled = False |
#3
|
|||
|
|||
problem in diabling the command button
It works exactly the way I want.
Many thanks Tina! |
Thread Tools | |
Display Modes | |
|
|