I created a database that has Access XP on the front end and SQL Server 2000 as the engine. Now I created a view of another table which is located in another database, its called ConditionalLicense_View. It gets updated from time to time from the EmployeeGamingLicense table (after the team memeber is terminated). The problem is that the stored procedure I created is not populating the fields with the information from the EmployeeGamingLicense table. it will say "Stored Procedure executed successfully but didnt return any records". Now thats normal I get that same message when I execute another stored procedure also and it does populate the fields..but this one does not, can anyone see anything wrong with this stored procedure?? Any advice you might have would be awesome
Thanks
Thanks
Code:
ALTER PROCEDURE insert_Conditionals
AS
INSERT INTO [GamingCommissiondb].[dbo].[ConditionalLicense_View]
( [TM #],
[FirstName],
[LastName],
[SS#],
[reasonforconditional],
[ConditionalStart Date])
SELECT
[TM#],
[LASTNAME],
[FIRSTNAME],
[SSN#],
[NOTES],
[DATEOFCONDITIONAL]
FROM EmployeeGamingLicense
WHERE STATUS = 'TERMINATION-COND'
IF @@Error <> '0'
RETURN