G
George Papadopoulos
Hello Access users,
I have written the code below, which is part of an event handler I`m using
:
If Me.From_Date <> Null Then dtFrom_Date = Me.From_Date
If Me.To_Date <> Null Then dtTo_Date = Me.To_Date.
The code is supposed to check if the text box 'From_Date' has some value
before assignment. Unfortunately, the statement fails and the variable
dtFrom_Date (Date type) takes on an undefined value.
Is this the recommended approach to check for empty values in a text box?
thx, in advance
George Papadopoulos
I have written the code below, which is part of an event handler I`m using
:
If Me.From_Date <> Null Then dtFrom_Date = Me.From_Date
If Me.To_Date <> Null Then dtTo_Date = Me.To_Date.
The code is supposed to check if the text box 'From_Date' has some value
before assignment. Unfortunately, the statement fails and the variable
dtFrom_Date (Date type) takes on an undefined value.
Is this the recommended approach to check for empty values in a text box?
thx, in advance
George Papadopoulos