Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I...? 2

Status
Not open for further replies.

CIMTEET

Programmer
Jun 25, 2001
182
US
How do I return all records in a table based on one field. Ex. Return all records that have someone who was has red hair. Assuming their is a hair color field. (I know, stupid example but I hope it gets the point across) I am using an ADO control to connect to the database. Please Help!!

Greg
 
in the criteria section of your query type "Red" under the hair field.
 
Or:

SELECT *
FROM MyTable
WHERE MyTable.HairColor = 'RED' Terry M. Hoey
 
Would you guys by chance know the syntax for a connection string. I am trying to connect not using an ADO control.

Greg:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top