S
Scott
I get an "expected array" error when running my code. This code runs fine in
ASP, but I don't know how to dim an array in Access. The code splits a date
time string called dtTargetDateStamp into a date and time variable.
Can someone explain how to properly Dim the dateArray1 variable below?
CODE ***********************
Dim FSO As New FileSystemObject
Dim dtTargetDateStamp As String
dtTargetDateStamp = Now()
Dim dateArray1 As String
Dim sTime As String, sDate As String
dateArray1 = Split(CStr(dtTargetDateStamp), ":")
sTime = Int(Right(dateArray1(0), 2)) & ":" & dateArray1(1) &
":" & dateArray1(2)
ASP, but I don't know how to dim an array in Access. The code splits a date
time string called dtTargetDateStamp into a date and time variable.
Can someone explain how to properly Dim the dateArray1 variable below?
CODE ***********************
Dim FSO As New FileSystemObject
Dim dtTargetDateStamp As String
dtTargetDateStamp = Now()
Dim dateArray1 As String
Dim sTime As String, sDate As String
dateArray1 = Split(CStr(dtTargetDateStamp), ":")
sTime = Int(Right(dateArray1(0), 2)) & ":" & dateArray1(1) &
":" & dateArray1(2)