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

selecting a field based in Recordset index

Status
Not open for further replies.

daughtery

Programmer
Dec 12, 2006
66
US
Say I have the following recordset:



ProfileName RuleDesc ProductName (These are field names)

Soda Open Coke
Beer Restricted Corona


How could I reference the RuleDesc field for the record with soda as the profileName?
 

I am not sure if that's what you are after, but if this is an ADODB rst, you can:
Code:
rst.Filter = " ProfileName = 'Soda'"


Have fun.

---- Andy
 

FYI, don't forget to take a Filter off after you are done with it:
Code:
rst.Filter = ADODB.FilterGroupEnum.adFilterNone


Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top