Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
code for vb 6.0 search button
View previous topic :: View next topic  
Author Message
mike
Newbie


Joined: 07 Mar 2006
Posts: 3
Location: south africa

PostPosted: Mar 15th, 2006 07:58 AM    Post subject: code for vb 6.0 search button Reply with quote

any one who help with code for vb 6.0 "search button", to search for records in a database. please help!!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
smart
Newbie


Joined: 19 Apr 2006
Posts: 6

PostPosted: Apr 19th, 2006 09:41 PM    Post subject: Reply with quote

Adodc1.RecordSource = "select * from G where 姓名='123'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then text1.text=Adodc1.Recordset.field("电话号码") else text1.text=""
_________________
Nothing To Lose!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic