Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working in visual studio 2010 vb. I I have an accdb copied to my project. I have a table with names and basic information and another table with detailed information . I am trying to filter the details of the second table to just the current name in the first table using an ID number.

What I have tried:

Table1BindingSource.filter = "MemberID" = strFilter
Posted
Updated 28-Feb-20 12:16pm

Take a look here: BindingSource.Filter Property (System.Windows.Forms) | Microsoft Docs[^]

A proper statement would be:
VB
Dim strFilte As String = String.Format("MemberID={0}", some_numeric_value_here)
Table1BindingSource.filter = strFilter
 
Share this answer
 
This works perfectly.
I am ecstatic as this has been
holding up progress for almost
two weeks. Thanks a bunch.
 
Share this answer
 
Comments
Maciej Los 2-Mar-20 8:53am    
This is not an answer. Please, delete it to avoid down-votes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900