VBA Express Forum  




Go Back   VBA Express Forum > VBA Code & Other Help > SQL
     Feedback     
Register FAQ Members Arcade Knowledge Base Training Articles Consulting

Reply
 
Thread Tools Display Modes
Old 03-07-2012, 08:46 AM   #1
Hattonp

 
Joined: Feb 2012
Posts: 2
Kb Entries: 0
Articles: 0
Converting A date Function from VBA to SQL

I have this query from MS Access -
SELECT [Master Query].CALL_NUMBER, DateAdd("d",7-Weekday(Format([ACTUAL_LOG_DATE],"mm-dd-yy"),1),Format([ACTUAL_LOG_DATE],"mm-dd-yy")) AS [Week Ending],

I cannot get this format to work to my select statement in SQL. The idea is to convert [actual_log_date] to the week ending date.

Any suggestions?
Thank you,
Patrick

Local Time: 07:49 AM
Local Date: 05-22-2013
Location:

 
Reply With Quote Top
Reply



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
Forum Jump


All times are GMT -7. The time now is 06:49 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2012 VBA Express