16,015,900 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TonyJPerez (Top 2 by date)
TonyJPerez
29-Jun-11 7:10am
View
Here is the query I'm using:
Protected Sub allbymgr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles allbymgr.Click
Dim dC As New APDDataClassesDataContext()
Dim MG = From p In dC.ALLs_employees _
Where p.SUPERVISOR_NAME = lblfname.Text And _
p.EMPLOYMENT_STATUS = "A" _
Order By p.FULL_NAME _
Select p.FULL_NAME, p.LOCATION_NAME, p.EMPLOYMENT_STATUS, _
p.SUPERVISOR_NAME
GridView3.DataSource = MG
GridView3.DataBind()
TonyJPerez
28-Jun-11 22:50pm
View
.I am not using a stored procedure. I will post my query tomorrow from work, but basically I call the team leaders by filtering the manager's name as his name appears as supervisor on the team leaders records. I have updated my original post to correct the fields I need. I actually need the full_name field from my gridview as that name will be the supervisor_name on the agents records. So the where clause would be; where supervisor_name = full_name name from the gridview output, the table is the same table. I can output to a new gridview or dropdown box or a combobox as that output will be used to lookup info on another table regarding the employee.
thanks for your reply.