problem in diabling the command button

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

Guest

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 = Fals
 
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 said:
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.
 
Back
Top