R
Ray Todd Jr
Table:
taDEFENDANTS
DefendantID PK
PropertyID
DefendantsNameID
taPROCESSSERVICE
ProcessServiceID
DefendantID FK
SummonsIssueDate
Forms:
subDEFENDANTS
SELECT taDEFENDANTS.DefendantID, taDEFENDANTS.PropertyID,
taDEFENDANTS.DefendantsNameID, taDEFENDANTNAMES.LastName,
taDEFENDANTNAMES.FirstName, taDEFENDANTNAMES.MiddleName,
taDEFENDANTNAMES.Suffix, taDEFENDANTNAMES.DOB, taDEFENDANTNAMES.Address1,
taDEFENDANTNAMES.Address2, taDEFENDANTNAMES.City, taDEFENDANTNAMES.State,
taDEFENDANTNAMES.Zip, taDEFENDANTS.DefendantTypeID,
taDEFENDANTNAMES.DeceasedDate FROM taPROPERTY INNER JOIN (taDEFENDANTTYPE
INNER JOIN ((taDEFENDANTNAMES RIGHT JOIN taDEFENDANTS ON
taDEFENDANTNAMES.DefendantsNameID=taDEFENDANTS.DefendantsNameID) LEFT JOIN
taPROCESSSERVICE ON taDEFENDANTS.DefendantID=taPROCESSSERVICE.DefendantID) ON
taDEFENDANTTYPE.DefendantTypeID=taDEFENDANTS.DefendantTypeID) ON
taPROPERTY.PropertyID=taDEFENDANTS.PropertyID ORDER BY
taDEFENDANTNAMES.LastName, taDEFENDANTNAMES.FirstName;
frmPROCESSSERVICE-status
SELECT taPROCESSSERVICE.ProcessServiceID, taPROCESSSERVICE.DefendantID,
taPROCESSSERVICE.PropertyLiensID, taPROCESSSERVICE.SummonsIssueDate,
taPROCESSSERVICE.DateAssignedToServer, taPROCESSSERVICE.Served,
taPROCESSSERVICE.AnswerFiled, taPROCESSSERVICE.ContractorID FROM taDEFENDANTS
INNER JOIN taPROCESSSERVICE ON
taDEFENDANTS.DefendantID=taPROCESSSERVICE.DefendantID;
Code to Open frmPROCESSSERVICE-status from within subDEFENDANTS via a
Command Button:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmPROCESSSERVICE-Status"
DoCmd.OpenForm stDocName, , , DefendantID = Me.DefendantID
Problem:
When I click on the Command Button to see the Process Service status, the
form opens up. However, the DefendantID is 0 (zero). If I were to add data
it obviously won't save to the table because there is o DefendantID defined.
Once the table has been populated, the data that is shown is the first piece
of data regardless of the referring DefendantID. When I look at the Filter
in the Data Property (In design mode), it shows a -1.
I would like the form to open up to the DefendantID that requested the form
to open and if no data currently exist to be able to add the new data.
Can someone please tell me what I am doing so wrong here?
Thanks,
Ray.
taDEFENDANTS
DefendantID PK
PropertyID
DefendantsNameID
taPROCESSSERVICE
ProcessServiceID
DefendantID FK
SummonsIssueDate
Forms:
subDEFENDANTS
SELECT taDEFENDANTS.DefendantID, taDEFENDANTS.PropertyID,
taDEFENDANTS.DefendantsNameID, taDEFENDANTNAMES.LastName,
taDEFENDANTNAMES.FirstName, taDEFENDANTNAMES.MiddleName,
taDEFENDANTNAMES.Suffix, taDEFENDANTNAMES.DOB, taDEFENDANTNAMES.Address1,
taDEFENDANTNAMES.Address2, taDEFENDANTNAMES.City, taDEFENDANTNAMES.State,
taDEFENDANTNAMES.Zip, taDEFENDANTS.DefendantTypeID,
taDEFENDANTNAMES.DeceasedDate FROM taPROPERTY INNER JOIN (taDEFENDANTTYPE
INNER JOIN ((taDEFENDANTNAMES RIGHT JOIN taDEFENDANTS ON
taDEFENDANTNAMES.DefendantsNameID=taDEFENDANTS.DefendantsNameID) LEFT JOIN
taPROCESSSERVICE ON taDEFENDANTS.DefendantID=taPROCESSSERVICE.DefendantID) ON
taDEFENDANTTYPE.DefendantTypeID=taDEFENDANTS.DefendantTypeID) ON
taPROPERTY.PropertyID=taDEFENDANTS.PropertyID ORDER BY
taDEFENDANTNAMES.LastName, taDEFENDANTNAMES.FirstName;
frmPROCESSSERVICE-status
SELECT taPROCESSSERVICE.ProcessServiceID, taPROCESSSERVICE.DefendantID,
taPROCESSSERVICE.PropertyLiensID, taPROCESSSERVICE.SummonsIssueDate,
taPROCESSSERVICE.DateAssignedToServer, taPROCESSSERVICE.Served,
taPROCESSSERVICE.AnswerFiled, taPROCESSSERVICE.ContractorID FROM taDEFENDANTS
INNER JOIN taPROCESSSERVICE ON
taDEFENDANTS.DefendantID=taPROCESSSERVICE.DefendantID;
Code to Open frmPROCESSSERVICE-status from within subDEFENDANTS via a
Command Button:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmPROCESSSERVICE-Status"
DoCmd.OpenForm stDocName, , , DefendantID = Me.DefendantID
Problem:
When I click on the Command Button to see the Process Service status, the
form opens up. However, the DefendantID is 0 (zero). If I were to add data
it obviously won't save to the table because there is o DefendantID defined.
Once the table has been populated, the data that is shown is the first piece
of data regardless of the referring DefendantID. When I look at the Filter
in the Data Property (In design mode), it shows a -1.
I would like the form to open up to the DefendantID that requested the form
to open and if no data currently exist to be able to add the new data.
Can someone please tell me what I am doing so wrong here?
Thanks,
Ray.