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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I search for an entry in a table?

Status
Not open for further replies.

aldi

IS-IT--Management
May 10, 2002
421
CA
Could anybody please tell me what is the best approach to find a piece of data in a specific field of a table.

The case is that I need to check the OrderNum field to make sure that the order num is not going to be duplicate.

I tried opening a recordset with a select statement to find any duplicate number but when there is no duplicate i get an automation error.

Thanks a lot
 
Could you use something like Select Count(ORDERNUM) From <Table> Group By ORDERNUM Order By ORDERNUM Desc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top