Results 1 to 3 of 3

Thread: resolved convert error

Threaded View

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    resolved convert error

    Hi,

    I need help on the below code

    Code:
                If RSQAB1!Status_Varchar = "Live" Then
                    SQL_str = SQL_str & ", CONVERT(datetime,'" & Format(RSQAB1!PolicyStartDate_DateTime, "dd/mm/yyyy hh:mm:ss") & "',103)"
                    SQL_str = SQL_str & ", CONVERT(datetime,'" & Format(RSQAB1!PolicyEndDate_DateTime, "dd/mm/yyyy hh:mm:ss") & "', 103)"
                 Else
                   ' SQL_str = SQL_str & ", '" & "" & "'"
                   ' SQL_str = SQL_str & ", '" & "" & "'"
                    
                  SQL_str = SQL_str & ",'',''"
                    'SQL_str = SQL_str & "''"
                End If

    I keep getting a convert error on the below code
    Code:
     SQL_str = SQL_str & ",'',''"
    Thanks
    Last edited by holly; Mar 3rd, 2008 at 08:54 AM.
    ** HOLLY **

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width