Can any body tell me how can i check that record already exists?
Naveed_786 25 Posting Whiz in Training
Recommended Answers
Jump to PostUse the same select statement type -
SELECT * FROM student WHERE StudentName LIKE " & "'" & Nav & "%'"
This will return all the names that has Nav in its text.
Jump to Postrs.Open "YOUR SELECT STATEMENT HERE", cn, adOpenKeyset, adLockOptimistc, adCmdText
As in -
rs.Open "SELECT * FROM student WHERE StudentName LIKE " & "'" & Nav & "%'", cn, adOpenStatic, adLockOptimistic
.:)
Jump to Post'Declare the ADODB objects Dim cnMyCon As ADODB.Connection Dim rsMyRec As ADODB.RecordSet Set a reference to the ADODB that will be used in this context Set cnMyCon = New ADODB.Connection Set rsMyRec = New ADODB.RecordSet 'Do your access database connection here. cnMyCon.Open = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= WhereYourPathOfDatabaseIS\YourDatabaseName.MDB;Persist Security …
All 9 Replies
AndreRet 526 Senior Poster
PoisonedHeart 4 Junior Poster in Training
AndreRet 526 Senior Poster
devLady 0 Newbie Poster
devLady 0 Newbie Poster
Naveed_786 25 Posting Whiz in Training
AndreRet 526 Senior Poster
Naveed_786 25 Posting Whiz in Training
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.