Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

[RESOLVED] Label Click help

$
0
0
I have labels that when I click them it opens another form and the number I click that matches the database number and shows what I want. I use this code to pull up the numbers:
Code:

Private Sub Label43_Click(sender As Object, e As EventArgs) Handles Label43.Click
        Form5.ComputerBindingSource.Filter = "PhoneExt = 1300"
        Form5.ShowDialog()
    End Sub

Now I want to do the same thing to labels, but want it to pull up "PrimaryUser = Name". I tried just replacing it but the code keeps failing and exiting. Do I have to change the .Filter part in order for it to read String instead of numbers?

Im using VB 2012, thanks for the help.

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>