P
PowerPoint Jedi
Hello,
First off I am running ACCESS 2003 on an SQL server.
I am running a query that requries a date input. I would ilke to be able to
input the date to a form and have the query pull it from the text box on the
form.
I have done this before (on a non SQL server) and used the following syntax
[forms].["form name].[name of text box]
I don't understand why it won't let me put that line of code, and being self
taught in access I dont know what the proper syntax is for calling out the
form.
Here is the SQL
ALTER PROCEDURE dbo.[QSPC Repair Failures]
(@Start_date datetime)
AS INSERT INTO dbo.[TSPC All Failures]
(Serial, PartNo, TestID, Test_Type)
SELECT dbo.Tests.Serial, dbo.REPAIRS.PartNo, dbo.REPAIRS.TestID,
dbo.Tests.Test_Type
FROM dbo.Tests INNER JOIN
dbo.TEST_TYPES ON dbo.Tests.Test_Type =
dbo.TEST_TYPES.Test_Type INNER JOIN
dbo.REPAIRS ON dbo.Tests.TestID = dbo.REPAIRS.TestID
INNER JOIN
dbo.Failed_Codes INNER JOIN
dbo.Code_Groups ON dbo.Failed_Codes.Code_Group =
dbo.Code_Groups.Code_Group ON
dbo.REPAIRS.Repaired_Code = dbo.Failed_Codes.Fail_ID
WHERE (dbo.Tests.Start_Time <= @Start_Date) AND (dbo.Tests.Test_Type = 1
OR dbo.Tests.Test_Type = 3) AND (dbo.Tests.Start_Time >= @start_date)
ORDER BY dbo.Tests.Serial, dbo.REPAIRS.PartNo
Any Help would be appreciated Thank you
First off I am running ACCESS 2003 on an SQL server.
I am running a query that requries a date input. I would ilke to be able to
input the date to a form and have the query pull it from the text box on the
form.
I have done this before (on a non SQL server) and used the following syntax
[forms].["form name].[name of text box]
I don't understand why it won't let me put that line of code, and being self
taught in access I dont know what the proper syntax is for calling out the
form.
Here is the SQL
ALTER PROCEDURE dbo.[QSPC Repair Failures]
(@Start_date datetime)
AS INSERT INTO dbo.[TSPC All Failures]
(Serial, PartNo, TestID, Test_Type)
SELECT dbo.Tests.Serial, dbo.REPAIRS.PartNo, dbo.REPAIRS.TestID,
dbo.Tests.Test_Type
FROM dbo.Tests INNER JOIN
dbo.TEST_TYPES ON dbo.Tests.Test_Type =
dbo.TEST_TYPES.Test_Type INNER JOIN
dbo.REPAIRS ON dbo.Tests.TestID = dbo.REPAIRS.TestID
INNER JOIN
dbo.Failed_Codes INNER JOIN
dbo.Code_Groups ON dbo.Failed_Codes.Code_Group =
dbo.Code_Groups.Code_Group ON
dbo.REPAIRS.Repaired_Code = dbo.Failed_Codes.Fail_ID
WHERE (dbo.Tests.Start_Time <= @Start_Date) AND (dbo.Tests.Test_Type = 1
OR dbo.Tests.Test_Type = 3) AND (dbo.Tests.Start_Time >= @start_date)
ORDER BY dbo.Tests.Serial, dbo.REPAIRS.PartNo
Any Help would be appreciated Thank you