M
Mitchell_Collen
This is my stored procedure code. However without the syntax [Form].. it is
only useful with a report. I want to open up a record set from a form using
input parameters, I am not sure why in adp I can not use the = [Form]!
[rptEmployee]![StartDate] ...
Please help me.
Here is the code. Thanks in advance.
ALTER PROCEDURE Pharmacy.rptEmployee
(@startDatetime datetime,
@endDatetime datetime,@empKey varchar(20))
AS SELECT *
FROM dbo.phmPYXHx
WHERE (TxDatetime BETWEEN @startDatetime = [Forms]![rptEmployee]![StartDate]
AND @endDatetime = [Forms]![rptEmployee]![EndDate]) and (UserID = @empKey =
[Forms]![rptEmployee]![EmployeeKey])
only useful with a report. I want to open up a record set from a form using
input parameters, I am not sure why in adp I can not use the = [Form]!
[rptEmployee]![StartDate] ...
Please help me.
Here is the code. Thanks in advance.
ALTER PROCEDURE Pharmacy.rptEmployee
(@startDatetime datetime,
@endDatetime datetime,@empKey varchar(20))
AS SELECT *
FROM dbo.phmPYXHx
WHERE (TxDatetime BETWEEN @startDatetime = [Forms]![rptEmployee]![StartDate]
AND @endDatetime = [Forms]![rptEmployee]![EndDate]) and (UserID = @empKey =
[Forms]![rptEmployee]![EmployeeKey])