dbTalk Databases Forums  

ActiveX Help

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ActiveX Help in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben
 
Posts: n/a

Default ActiveX Help - 11-23-2005 , 02:26 PM






I currently have a process written in VBA that I'm trying to have
automatically run in another DTS package on my SQL 2000 server. Ive made all
the adjustments to the differences in languages but the execution still
haults on:

"INSERT INTO [Latest Data Received] ( DateIn, TimeIn ) SELECT DISTINCT
table_received.*, DateValue([Rdate]) AS DateIn, TimeValue([Rdate]) AS TimeIn
" & _
"FROM table_received " & _
"WHERE (((table_received.RDATE)>=#" & dteImport & "#) AND
((table_received.RDATE)<=#" & dteMax & "#))")

saying DateValue is not a recognized function name.

Isn't DateValue a function in vbscript? How can i fix this? the value in
RDate is a datetime and I need the date part

Thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.