Results 1 to 2 of 2

Need help in convert code Microsoft Excel sqlserver code

  1. #1
    sharawee is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2018
    Posts
    1

    Lightbulb Need help in convert code Microsoft Excel sqlserver code

    Please help convert equation in Excel to SQL

    =IF(DATE(YEAR(TODAY());MONTH(B2);DAY(B2))>TODAY(); DATE(YEAR(TODAY())-1;MONTH(B2);DAY(B2));DATE(YEAR(TODAY());MONTH(B2); DAY(B2)))



    =ROUNDDOWN((((1+B4)^YEARFRAC(B2;B3))-1)*B1;2) aa11.zip

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    45,138
    Learn date functions https://support.office.com/en-us/art...2-658CE330ED83

    Use DateSerial()

    Instead of cell references, I presume you have fields.

    There is no intrinsic RoundDown function. You will have to build your own. http://www.allenbrowne.com/round.html
    To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression. Attachment Manager is below Advanced editor window, click Go Advanced below Quick Reply window.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 02-17-2018, 01:28 PM
  2. Convert fousername 32 bit code to 64 bit
    By Jaik in forum Programming
    Replies: 3
    Last Post: 12-29-2016, 05:12 PM
  3. Replies: 1
    Last Post: 10-03-2016, 02:51 PM
  4. Replies: 4
    Last Post: 03-10-2014, 11:18 AM
  5. Convert Access 07 ADO code to SQL Server Express 2008
    By jrdnoland in forum Programming
    Replies: 8
    Last Post: 04-14-2010, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Tech Forums: Microsoft Office Forums