Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How to insert a clausole Wehre in this con?

    sConnString = "Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" & T_DATABASE & ";Data Source=xxxxxxxxx"
    oConn.Open sConnString

    oReco.Open "Select * From " & T_TABELLE, oConn, adOpenStatic
    NUMERO_CAMPI = oReco.Fields.Count

    note:
    T_DATABASE and T_TABELLE are a String variable

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    C'mon Sal, you shouldn't need to ask that. You've written SQL statements with a WHERE clause before.

Posting Permissions

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