dim ssql as string
dim i as long
ssql="select * from 阁下的数据表名称"
rs.Open ssql, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
for i=1 to rs.recordcount
rs!日期型日期字段的名称.value=cdate(rs!文本型日期字段的名称.value)
rs.update
rs.movenext
next
rs.close
set rs=nothing作者: saraou 时间: 2012-4-19 13:26
Private Sub Command0_Click()
Dim ssql As String
Dim i As Long
ssql = "select * from [2012 XTS Data]"
rs.Open ssql, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
For i = 1 To rs.RecordCount
rs![PR Date].Value = CDate(rs!文本型日期字段的名称.Value)
rs.Update
rs.MoveNext
Next
rs.Close
Set rs = Nothing
End Sub 作者: zrj898 时间: 2012-4-20 09:59
感谢分享!最好提供源码!