G
George
Hi to all,
Finally I decided to create a Client class but I have some difficulties. My
Clients form contains text boxes, some of them with string values, some with
dates, some with long integers, some with double and some with boolean
values. When I open my Clients form, I create a recordset based on my clients
table and then I assign the values of each field to private variables. Next I
use these private variables to fill all textboxes on my Clients form in the
form's Load event.
The problem appears when some client info is missing, that, is when there is
one or more null values in some field or fields in tblClients. In the case of
string values I use an If statement:
If Not IsNull(mrs.LName) Then
mstrLName = mrsLName
Else
mstrLName = Empty
End If
But how do I deal with the rest of the variables, i.e. dates (e.g. a missing
birthdate), long integers, double, and boolean when I have null values? Any
help would be greatly appreciated
thanks in advance, George
Finally I decided to create a Client class but I have some difficulties. My
Clients form contains text boxes, some of them with string values, some with
dates, some with long integers, some with double and some with boolean
values. When I open my Clients form, I create a recordset based on my clients
table and then I assign the values of each field to private variables. Next I
use these private variables to fill all textboxes on my Clients form in the
form's Load event.
The problem appears when some client info is missing, that, is when there is
one or more null values in some field or fields in tblClients. In the case of
string values I use an If statement:
If Not IsNull(mrs.LName) Then
mstrLName = mrsLName
Else
mstrLName = Empty
End If
But how do I deal with the rest of the variables, i.e. dates (e.g. a missing
birthdate), long integers, double, and boolean when I have null values? Any
help would be greatly appreciated
thanks in advance, George