G
Guest
I am using the following script to populate a table with dates. However, the
dates that are populating are early 1800s instead of today's dates.
strDate = Format(Date, "mm/dd/yyyy")
Select Case fraDept.Value 'Determine which dept has been selected from
the list
Case 1
sIdList = ""
With Me.lstItems
For Each vItem In .ItemsSelected
sIdList = sIdList & .ItemData(vItem) & ","
Next vItem
End With
sIdList = Left(sIdList, Len(sIdList) - 1)
sSql = "Update Billing SET Closed = '-1', CloseDate = " &
strDate _
& " Where ID in ( " & sIdList & ");"
CurrentDb.Execute sSql, dbFailOnError
Any thoughts?
Thank you in advance.
dates that are populating are early 1800s instead of today's dates.
strDate = Format(Date, "mm/dd/yyyy")
Select Case fraDept.Value 'Determine which dept has been selected from
the list
Case 1
sIdList = ""
With Me.lstItems
For Each vItem In .ItemsSelected
sIdList = sIdList & .ItemData(vItem) & ","
Next vItem
End With
sIdList = Left(sIdList, Len(sIdList) - 1)
sSql = "Update Billing SET Closed = '-1', CloseDate = " &
strDate _
& " Where ID in ( " & sIdList & ");"
CurrentDb.Execute sSql, dbFailOnError
Any thoughts?
Thank you in advance.