Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > light string search


Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2003, 08:19 PM
destress destress is offline
Centurion
 
Join Date: Jan 2002
Posts: 128
Default light string search


Hey there,

I'm not to sure how to go abt this but how do i do a light string search using sql... Thus far my codes are as such... in which i'm doing an exact string search

Code:
Public Sub Symantec() Dim Cn As New ADODB.Connection Dim Rst As New ADODB.Recordset Dim rst1 As New ADODB.Recordset Dim sql As String Set Cn = New ADODB.Connection Cn.CursorLocation = adUseClient Cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source= " & App.Path & "\AShield.mdb" Set Rst = New ADODB.Recordset Set rst1 = New ADODB.Recordset Rst.Open [B]"SELECT AddSoftware.Symantec, Software.* FROM AddSoftware, Software WHERE AddSoftware.Symantec = Software.SoftwareList ORDER BY AddSoftware.Symantec ", Cn, adOpenStatic, adLockOptimistic[/B]rst1.Open "Select * from Symantec", Cn, adOpenStatic, adLockOptimistic DeletePCSymantec Do Until Rst.EOF If Rst!Symantec = Rst!SoftwareList Then rst1.AddNew rst1!Symantec = Rst!Symantec rst1!PC = Rst!PC rst1.Update End If Rst.MoveNext Loop Rst.Close rst1.Close Set Rst = Nothing Set rst1 = Nothing End Sub

Anyone with any idea's
Marry x-mas!!
Reply With Quote
  #2  
Old 12-22-2003, 07:27 PM
destress destress is offline
Centurion
 
Join Date: Jan 2002
Posts: 128
Default

help anyone!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a file in dat question ? murphys General 5 11-06-2002 08:34 PM
Open an associated Text Document knoxitis General 19 05-01-2002 11:26 PM
Shareware Registry Protection Technigue karachi999 General 2 01-21-2002 02:40 PM
Loop to format file kingesk General 2 09-10-2000 05:01 PM
File format problem kingesk General 1 09-08-2000 04:52 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->