Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Update form & date time field

LEGEND ,
Jan 18, 2008 Jan 18, 2008

Copy link to clipboard

Copied

Platform: ASP classic
DB: MSSQL

I have a datetime field on an update form that is giving me fits. When
I do not enter a value it throw an error about wrong data type. When I
put this code in

if (isnull(CStr(Request.Form("Left_Date")))) then

that processes the update without the datetime field. The else part of
the statement processes with the datetime field. The if does not work.

Any idea how this situation should be handled?

--

TOPICS
Server side applications

Views

227
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 21, 2008 Jan 21, 2008

Copy link to clipboard

Copied

does that column allow nulls?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 22, 2008 Jan 22, 2008

Copy link to clipboard

Copied

LATEST
jsteinmann wrote:

> does that column allow nulls?

This morning I did a little more digging and ended up with isdate.
That solved the problem. I also had another problem, it was a kin to
hitting yourself in the head with a hammer, your head won't hurt if you
quite swinging the hammer.

But to answer your question, yes it did allow nulls.

Thanks for the response.

--

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines