SQL Statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesnkk
    New Member
    • Nov 2006
    • 134

    SQL Statement

    Hi,
    I am not sure how to use the proper sql statement, those quote and double quote
    very confusing.

    Could somebody help me re-sentence the correct statement

    rsDebug.Open "Select * from DebugProcess where SN=" & sn1.Text & " 'and failurecode ='VTT' ", conn
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Change it to :

    "Select * from DebugProcess where SN='" & sn1.Text & "' and failurecode ='VTT' "

    First Double Quote is for the String,
    Single Quote to Wrap String Fields in tyhe Query..

    REgards
    Veena

    Comment

    • jamesnkk
      New Member
      • Nov 2006
      • 134

      #3
      Originally posted by QVeen72
      Hi,

      Change it to :

      "Select * from DebugProcess where SN='" & sn1.Text & "' and failurecode ='VTT' "

      First Double Quote is for the String,
      Single Quote to Wrap String Fields in tyhe Query..

      REgards
      Veena
      Thank you so much it work

      Comment

      Working...