G
Guest
hello all,
This should be even simpler than it sounds but its not working! I want to
see if there comboboxes on the form are empty or not, there is a set of combo
boxes that exist across several forms and i want to test if they are empty or
not before i go onto use the values of them. There are 4 comobo boxes called
[Building], [Block], [Flat] and [Room].
Im trying to setup a function called CheckAddress which checks to see if the
value of each of those isNull and have passed them as parameters in the
function. The FormName and surname are further parameters hence the call is
if CheckAddress(FormsName, Me![Building], Me![Block], Me![Flat], Me![Room],
Me![Surname]) Then
'use the values
but if any of the values are null (apart from FormsName) then i get an
Invalid use of null error message.
is there no way i can use a function to check this??
with regards and thanks
Amit
This should be even simpler than it sounds but its not working! I want to
see if there comboboxes on the form are empty or not, there is a set of combo
boxes that exist across several forms and i want to test if they are empty or
not before i go onto use the values of them. There are 4 comobo boxes called
[Building], [Block], [Flat] and [Room].
Im trying to setup a function called CheckAddress which checks to see if the
value of each of those isNull and have passed them as parameters in the
function. The FormName and surname are further parameters hence the call is
if CheckAddress(FormsName, Me![Building], Me![Block], Me![Flat], Me![Room],
Me![Surname]) Then
'use the values
but if any of the values are null (apart from FormsName) then i get an
Invalid use of null error message.
is there no way i can use a function to check this??
with regards and thanks
Amit