Hi..
I have the query below setup in my access adp project. It works, ok but rather than have the standard prompts I want the sql stored procedure to use the details from an unbound form. I have the form setup but unsure of the sql code. Does anyone know how to achieve this?
SELECT dbo.Calendar.[Job Date], dbo.JobSpec.Driver, dbo.JobSpec.[Job Type], dbo.JobSpec.[Company Name], dbo.JobSpec.[Site Location],
dbo.JobSpec.Equipment, dbo.JobSpec.[Purchase Goods], dbo.JobSpec.[Deliver Time]
FROM dbo.Calendar INNER JOIN
dbo.JobSpec ON dbo.Calendar.ID = dbo.JobSpec.ID
WHERE (dbo.JobSpec.Driver = @Enter_Driver) AND (dbo.Calendar.[Job Date] BETWEEN @StartDate AND @EndDate)
I have the query below setup in my access adp project. It works, ok but rather than have the standard prompts I want the sql stored procedure to use the details from an unbound form. I have the form setup but unsure of the sql code. Does anyone know how to achieve this?
SELECT dbo.Calendar.[Job Date], dbo.JobSpec.Driver, dbo.JobSpec.[Job Type], dbo.JobSpec.[Company Name], dbo.JobSpec.[Site Location],
dbo.JobSpec.Equipment, dbo.JobSpec.[Purchase Goods], dbo.JobSpec.[Deliver Time]
FROM dbo.Calendar INNER JOIN
dbo.JobSpec ON dbo.Calendar.ID = dbo.JobSpec.ID
WHERE (dbo.JobSpec.Driver = @Enter_Driver) AND (dbo.Calendar.[Job Date] BETWEEN @StartDate AND @EndDate)