Searching Access DB for a record

foldor

New member
Joined
Mar 23, 2008
Messages
1
Programming Experience
1-3
Ok I have an Access Database set up with a BindingSource and I have tried finding a way to search the database for a certain record and then returning true or false depending on whether or not it exists. I tried using the .contains method, but it seems to be for list boxes.

does anyone have any ideas?

Thanks in advance,
Foldor
 
SELECT COUNT(*) FROM table WHERE column = value

returns 0 if value not exists, or a number higher than 0 if it does exist

for more info on creating a parameterized query, read the dw2 link in my signature, section "Creating a form to search data"
 

Latest posts

Back
Top