- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
When I try to add the following query to my TableAdapter for my Hours table I get the "The new command text returns data with schema different from the schema of the main query. Check your query's command text if this is not desired" prompt.
The query i'm trying to use is:
This then stops other things such as editing or inserting working where i've used other queries from the TableAdapter.
Do I need to create a different TableAdapter for the query?
The query i'm trying to use is:
Code:
SELECT tblHours.ID, tblHours.TimeCode, tblHours.Date, tblHours.Hours, tblHours.Username, tblHours.Comments, tblHours.Approved,
tblCodes.CodeOwner
FROM tblHours INNER JOIN
tblCodes ON tblHours.TimeCode = tblCodes.CodeID
WHERE Approved = '1' AND CodeOwner = @UserName
This then stops other things such as editing or inserting working where i've used other queries from the TableAdapter.
Do I need to create a different TableAdapter for the query?