L
Liat
I have an access project that contains 1 main table which
is filled by a form.
One kind of field is "date" field, which is doing me a
problem.
I have a report that should show the last date. for that
I wrote a function that gets 3 field of date and returns
the last one of them. I built a query that her fields are
the results of the function - this is related to the
report
The problem is that if one of those fields is empty, he
doesn't get into the function.
Trying to resolve this problem, I initialized the text
fields with #09/09/9999# and if the value of a field is
that initialized value, then I change the font color to
white (so it will look like empty).
The problem that this doesn't solve is - if a user starts
to write and then deletes, so again, I have an empty
value in the field. I tried to use the "BeforeUpdate"
function in order to put the #09/09/9999# value in case
the field is empty, but it brings an error, saying that
this is not a valid value.
Thanks a kot,
Liat
is filled by a form.
One kind of field is "date" field, which is doing me a
problem.
I have a report that should show the last date. for that
I wrote a function that gets 3 field of date and returns
the last one of them. I built a query that her fields are
the results of the function - this is related to the
report
The problem is that if one of those fields is empty, he
doesn't get into the function.
Trying to resolve this problem, I initialized the text
fields with #09/09/9999# and if the value of a field is
that initialized value, then I change the font color to
white (so it will look like empty).
The problem that this doesn't solve is - if a user starts
to write and then deletes, so again, I have an empty
value in the field. I tried to use the "BeforeUpdate"
function in order to put the #09/09/9999# value in case
the field is empty, but it brings an error, saying that
this is not a valid value.
Thanks a kot,
Liat