Quick Search for:  in language:    
want,check,existance,value,table,field,record
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,008,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!Maths
By Sjoerd on 6/27

(Screen Shot)

Search A Listview
By Blue Flame Software on 6/27


Click here to see a screenshot of this code!Visual Basic Source Code into HTML format Converter
By sherif rofael on 6/27

(Screen Shot)

Click here to see a screenshot of this code!INK. Virus Sniffer® Spanish Edition
By INK. Security Products on 6/27

(Screen Shot)

Click here to see a screenshot of this code!INK. Virus Sniffer® Full Version 2
By INK. Security Products on 6/27

(Screen Shot)

Click here to see a screenshot of this code!Repair access database
By Freebug on 6/27

(Screen Shot)

chating with net send
By Freebug on 6/27


Click here to see a screenshot of this code!Different Open Methods
By Hou Xiong on 6/27

(Screen Shot)

Click here to see a screenshot of this code!MaTRiX ReVoLuTioNS CouNTDoWN
By UrT_CaRNaGe on 6/26

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

IsExist Function

Print
Email
 

Submitted on: 6/20/2003 4:24:00 PM
By: Said Sowiny 
Level: Advanced
User Rating: Unrated
Compatibility:VB 5.0, VB 6.0

Users have accessed this article 532 times.
 
(About the author)
 
     hi,.. if you want to check out an existance of a value in a table field or recordset to determine the acceptance of a new value and want to not dupplicate the value in the field ,.. here what you seek for. or to decide a n action if the value exist a pro ver. well be come soon.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.

Public Function IsExist(ByVal strSource As String, ByVal strCriteria As String) As Boolean

Dim strSQL As String

Dim rstSource As Recordset

IsExist = False

strSQL = "SELECT * FROM [" & strSource & "] WHERE ((" & strCriteria & "));"

Set rstSource = gdbName.OpenRecordset(strSQL, dbOpenSnapshot)

If rstSource.RecordCount <> 0 Then

IsExist = True

End If

rstSource.Close

End Function

 


Other 5 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Advanced category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments

 There are no comments on this submission.
 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.