traveller4
Programmer
I am attempting to pass a date parameter to a stored procedure through a form in an Access project. My problem is when I execute the procedure it brings up the parameter value box and tells me to enter a value. I would like it to pick up the form value from the text boxs.
The stored procedure is as follows:
CREATE PROCEDURE dbo.qapdMoveGahs
@Begins AS datetime,
@Ends AS datetime
AS
SELECT
dbo.vMoveGahsInvoices.FileID,
dbo.vtblFileMain.NameFile,
dbo.vtblDesc.Description,
dbo.vMoveGahsInvoices.GahsInvID,
dbo.vMoveGahsInvoices.GahsRetID, dbo.vMoveGahsInvoices.BeginDate, dbo.vMoveGahsInvoices.EndDate, dbo.vMoveGahsInvoices.InvoiceNum,
dbo.vMoveGahsInvoices.Hours, dbo.vMoveGahsInvoices.InvoiceFees, dbo.vMoveGahsInvoices.InvoiceDisbursement,
dbo.vMoveGahsInvoices.LSBCost, dbo.vMoveGahsInvoices.ClientCost, dbo.vMoveGahsInvoices.JVNum,
dbo.vMoveGahsInvoices.JVPaid,
dbo.vMoveGahsInvoices.ClientID, dbo.vMoveGahsInvoices.InvoicePST, dbo.vMoveGahsInvoices.InvoiceGST, dbo.vMoveGahsInvoices.InvoiceFiscal,
dbo.vMoveGahsInvoices.BatchNum, dbo.vMoveGahsInvoices.InvoiceTotal, dbo.vMoveGahsInvoices.Invoiced,
dbo.vMoveGahsInvoices.InvoicePaidBy
FROM dbo.vMoveGahsInvoices
INNER JOIN dbo.vtblFileMain ON bo.vMoveGahsInvoices.FileID = dbo.vtblFileMain.FileID
INNER JOIN dbo.vtblDesc ON dbo.vtblFileMain.LocID = dbo.vtblDesc.XTableId
WHERE dbo.vMoveGahsInvoices.BeginDate BETWEEN @Begins AND @Ends)
The form is called: frmMoveslips
and the text boxes are:
txtBeginDate
txtEndDate
Thanks in advance
Micheal
The stored procedure is as follows:
CREATE PROCEDURE dbo.qapdMoveGahs
@Begins AS datetime,
@Ends AS datetime
AS
SELECT
dbo.vMoveGahsInvoices.FileID,
dbo.vtblFileMain.NameFile,
dbo.vtblDesc.Description,
dbo.vMoveGahsInvoices.GahsInvID,
dbo.vMoveGahsInvoices.GahsRetID, dbo.vMoveGahsInvoices.BeginDate, dbo.vMoveGahsInvoices.EndDate, dbo.vMoveGahsInvoices.InvoiceNum,
dbo.vMoveGahsInvoices.Hours, dbo.vMoveGahsInvoices.InvoiceFees, dbo.vMoveGahsInvoices.InvoiceDisbursement,
dbo.vMoveGahsInvoices.LSBCost, dbo.vMoveGahsInvoices.ClientCost, dbo.vMoveGahsInvoices.JVNum,
dbo.vMoveGahsInvoices.JVPaid,
dbo.vMoveGahsInvoices.ClientID, dbo.vMoveGahsInvoices.InvoicePST, dbo.vMoveGahsInvoices.InvoiceGST, dbo.vMoveGahsInvoices.InvoiceFiscal,
dbo.vMoveGahsInvoices.BatchNum, dbo.vMoveGahsInvoices.InvoiceTotal, dbo.vMoveGahsInvoices.Invoiced,
dbo.vMoveGahsInvoices.InvoicePaidBy
FROM dbo.vMoveGahsInvoices
INNER JOIN dbo.vtblFileMain ON bo.vMoveGahsInvoices.FileID = dbo.vtblFileMain.FileID
INNER JOIN dbo.vtblDesc ON dbo.vtblFileMain.LocID = dbo.vtblDesc.XTableId
WHERE dbo.vMoveGahsInvoices.BeginDate BETWEEN @Begins AND @Ends)
The form is called: frmMoveslips
and the text boxes are:
txtBeginDate
txtEndDate
Thanks in advance
Micheal