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 » Database & Reporting

Post new topic   Reply to topic
How to write a code for "Find" in vb + Access
View previous topic :: View next topic  
Author Message
shivdasn
Regular


Joined: 19 Jun 2005
Posts: 58
Location: India

PostPosted: May 23rd, 2006 08:21 AM    Post subject: How to write a code for "Find" in vb + Access Reply with quote

Hi,
I am writing a kind of a "phonebook" program. But i dont know how to do a "find" a record.
Am using VB + Msaccess as backend db. If any1could just gimme the raw code, i would b "greatfull"......errr.....grateful !!

Thanx a lot in advance.
_________________
..::-- '' D a s ''--::..
Back to top
View user's profile Send private message Send e-mail MSN Messenger
dougthomas
Moderator


Joined: 27 Jul 2005
Posts: 271
Location: Essex, UK

PostPosted: May 29th, 2006 02:12 AM    Post subject: Reply with quote

Hi,

You need to use the WHERE clause in the SQL statement

eg

SELECT * FROM phonebook WHERE surname = "Blogs"
will return all entries in the phonebook where the surname is Blogs.

Regards
Doug
_________________
If you can see the light at the end of the tunnel, it probably means there's a Train coming.
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 » Database & Reporting 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