|
 |
asp_databases thread: empty date into sql string
Message #1 by =?iso-8859-2?Q?Zsoldos_P=E9ter?= <paz@c...> on Fri, 22 Jun 2001 14:00:34 +0200
|
|
I would like to ask that what can I do, if I want to run an update
query, which contains some date fields (ergo in the query i put it
between hashes (#), and if it wasn't given a value, then the I get a
really nice error that it couldn't interprete the ## expression on
query string.
any ideas?
thanx a lot,
Peter
Message #2 by Gee Vee <happygv@y...> on Fri, 22 Jun 2001 05:21:20 -0700 (PDT)
|
|
Hi,
I can suggest you one thing, You can do the
client-side Validation on datevariable for not empty
before passing it to the query, so that always you
will pass some value. or if its empty you can pass
some default value.
Regards
Vijay.G
--- Zsoldos_Péter <paz@c...> wrote:
> I would like to ask that what can I do, if I want to
> run an update
> query, which contains some date fields (ergo in the
> query i put it
> between hashes (#), and if it wasn't given a value,
> then the I get a
> really nice error that it couldn't interprete the ##
> expression on
> query string.
> any ideas?
> thanx a lot,
> Peter
>
Message #3 by "Peter Zsoldos" <paz@c...> on Fri, 22 Jun 2001 14:06:16
|
|
Hi,
yeah, I know that would be the most obvious & easiest solution, but
unfortunately I cannot use that alternative :(
I need to make my SQL statement bombproof that it would run with empty
date fields....
so, still, anybody any idea?
peter
> Hi,
>
> I can suggest you one thing, You can do the
> client-side Validation on datevariable for not empty
> before passing it to the query, so that always you
> will pass some value. or if its empty you can pass
> some default value.
>
> Regards
> Vijay.G
|
|
 |