本文介绍了日期插入拼图:: 05/23/76变为12:12:13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里撕扯我的头发:ACCESS 2000:

当我尝试用新用户选择覆盖日期字段中的日期时

有效日期,例如:05/23/99

我的日期字段更改为TIME我更新了字段

并且没有显示我想要的日期:05/23 / 99


取而代之的是:12:12:03 AM


我疯了 - 甚至考虑将字段转换成文本。字段

是一个短期


这是我的sql语句:


ChangeDate = request.form。 item(" ChangeDate")''// 05/23/76

UpdateSQL =" UPDATE tblListingspriceChanges SET NewPrice =" &安培; NewPrice& ",

ChangeDate =" &安培; ChangeDate& "在哪里PriceChangeID =" &安培; PriceChangeID

''Response.end cnn.Execute(UpdateSQL)


结果如下:


UPDATE tblListingspriceChanges SET NewPrice = 20002,ChangeDate = 05/23/76

WHERE PriceChangeID = 28


以下是ChangeDate Field在Access中的样子:


12:04:07 AM


- 我甚至尝试过Cdate(ChangeDate),但这似乎没有

差异。


- 杰森

I''m tearing out my hair here: ACCESS 2000:

When I attempt to overwrite a date in my date field with a new user selected
valid date eg: 05/23/99
my date field changes to the TIME I updated the field
and does not display my desired date: 05/23/99

Instead it reads: 12:12:03 AM

I am going nuts - even considering converting the field to text. The field
is a SHORT DATE

Here is my sql statement:

ChangeDate = request.form.item("ChangeDate") ''// 05/23/76

UpdateSQL = "UPDATE tblListingspriceChanges SET NewPrice =" & NewPrice & ",
ChangeDate =" & ChangeDate & " WHERE PriceChangeID =" & PriceChangeID
''Response.end cnn.Execute(UpdateSQL)

Here is the result:

UPDATE tblListingspriceChanges SET NewPrice =20002, ChangeDate =05/23/76
WHERE PriceChangeID =28

Here is what ChangeDate Field looks like in Access:

12:04:07 AM

- I have even tried Cdate(ChangeDate) but this appears to make no
difference.

- Jason


推荐答案





选择


",


",




这篇关于日期插入拼图:: 05/23/76变为12:12:13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 07:13