C
Capt'n Roy
Hi,
I am usin vb6 and access 2000 for development.
if I place this syntax in a query in access it works, but when I place this
in my code to it returns an e-fail error. I assume it is how I am trying to
concatinate the date and time fields
in access:
(DateDiff("d",DateStarted & " " & TimeStarted, DateStopped & " " &
TimeStopped)) as ET
from Vb:
SHAPE {select TripName,StartDate,StopDate,autoid from Trip Order by
TripName} AS ParentCMD APPEND ({select
Destination,ColReg,DateStarted,TimeStarted,DateStopped,TimeStopped,
(DateDiff("d",DateStarted & " " & TimeStarted, DateStopped & " " &
TimeStopped)) as ET,
Notes,autoID,OrgLegID,TripID from LegsONTrip Order by DateStarted } AS
ChildCMD RELATE autoid TO TripID) AS ChildCMD
any suggestion on how to correct?
thanks,
roy
I am usin vb6 and access 2000 for development.
if I place this syntax in a query in access it works, but when I place this
in my code to it returns an e-fail error. I assume it is how I am trying to
concatinate the date and time fields
in access:
(DateDiff("d",DateStarted & " " & TimeStarted, DateStopped & " " &
TimeStopped)) as ET
from Vb:
SHAPE {select TripName,StartDate,StopDate,autoid from Trip Order by
TripName} AS ParentCMD APPEND ({select
Destination,ColReg,DateStarted,TimeStarted,DateStopped,TimeStopped,
(DateDiff("d",DateStarted & " " & TimeStarted, DateStopped & " " &
TimeStopped)) as ET,
Notes,autoID,OrgLegID,TripID from LegsONTrip Order by DateStarted } AS
ChildCMD RELATE autoid TO TripID) AS ChildCMD
any suggestion on how to correct?
thanks,
roy