F
FBxiii
Hi.
I have a form containing a sub-form. When a 'Table' is selected from the
form, the information is displayed on the sub-form from the selected table.
The sub form allows the user to update a couple of fields with a reject code
and comments.
I have modified the query slightly to include a Complete_Date from a
'tracking' table, linked by a field called MPRN. The query has now become
un-updateable!
If I remove the Complete_Date field I can update the records again.
Ive used DISTINCTROW which normally seems to fix this type of problem but it
hasnt worked.
My SQL is:
SELECT DISTINCTROW A.Record_ID, A.MPRN,
Format((DateSerial((Right(A.Date_of_Transfer,4)),(Mid(A.Date_of_Transfer,3,2)),(Left(A.Date_of_Transfer,2)))),'dd/mm/yyyy')
AS [Date], A.Proposed_Read, A.Actual_Estimate, A.Reject_Code, A.Comments,
tblSAR_Tracker.Complete_Date FROM *TableName* AS A INNER JOIN tblSAR_Tracker
ON A.MPRN = tblSAR_Tracker.MPR WHERE (((A.Reject_Code)='0') AND
((left(tblSAR_Tracker.File_Name,Len(tblSAR_Tracker.File_Name)-4))='*TableName*')) ORDER BY A.Record_ID;
Does anyone have any ideas how to make this updateable?
Cheers,
Steve.
I have a form containing a sub-form. When a 'Table' is selected from the
form, the information is displayed on the sub-form from the selected table.
The sub form allows the user to update a couple of fields with a reject code
and comments.
I have modified the query slightly to include a Complete_Date from a
'tracking' table, linked by a field called MPRN. The query has now become
un-updateable!
If I remove the Complete_Date field I can update the records again.
Ive used DISTINCTROW which normally seems to fix this type of problem but it
hasnt worked.
My SQL is:
SELECT DISTINCTROW A.Record_ID, A.MPRN,
Format((DateSerial((Right(A.Date_of_Transfer,4)),(Mid(A.Date_of_Transfer,3,2)),(Left(A.Date_of_Transfer,2)))),'dd/mm/yyyy')
AS [Date], A.Proposed_Read, A.Actual_Estimate, A.Reject_Code, A.Comments,
tblSAR_Tracker.Complete_Date FROM *TableName* AS A INNER JOIN tblSAR_Tracker
ON A.MPRN = tblSAR_Tracker.MPR WHERE (((A.Reject_Code)='0') AND
((left(tblSAR_Tracker.File_Name,Len(tblSAR_Tracker.File_Name)-4))='*TableName*')) ORDER BY A.Record_ID;
Does anyone have any ideas how to make this updateable?
Cheers,
Steve.