M
mkellen494
I have a form I 've created on an .adp I need to be able to take the data off
the form and use as parameters in a stored procedure to add the info to a
table. The procedure is:
CREATE PROCEDURE dbo.scNoteInsert
@review_date datetime,
@employee_id int,
@result_code varchar(10),
@reviewer_name varchar(30),
@review_notes text
AS
INSERT dbo.tbl_hr_performance (review_date, employee_id, type_code,
result_code, reviewer_name, review_notes, time_stamp, [user_id])
VALUES (@review_date, @employee_id, 'NOTES', @result_code, @reviewer_name,
@review_notes, GETDATE(), USER_NAME())
GO
How to I get the info off the form and into the procedure?
I have put a cmd button on the form to run the procedure but it asks me for
the parameters.
the form and use as parameters in a stored procedure to add the info to a
table. The procedure is:
CREATE PROCEDURE dbo.scNoteInsert
@review_date datetime,
@employee_id int,
@result_code varchar(10),
@reviewer_name varchar(30),
@review_notes text
AS
INSERT dbo.tbl_hr_performance (review_date, employee_id, type_code,
result_code, reviewer_name, review_notes, time_stamp, [user_id])
VALUES (@review_date, @employee_id, 'NOTES', @result_code, @reviewer_name,
@review_notes, GETDATE(), USER_NAME())
GO
How to I get the info off the form and into the procedure?
I have put a cmd button on the form to run the procedure but it asks me for
the parameters.