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

Command Button to Show records on form 1

Status
Not open for further replies.

jminn0311

Technical User
Jan 7, 2004
66
US
Does anyone have some simple coding for a command button that will show records that start with a particular letter. I have a table with a productname field and I want to show only the records that start with the letter "A" in the product field, on the form. I know this is simple but not for me.

Thanks for any help.

Jeff
 
Me.Filter = "[name of product field] Like 'A*'"
Me.FilterOn = True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
You may find the Customer Phone List form in the Northwind sample database useful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top