I am currently getting this error message when opening a form from a DblClick function on another form.
This is the code that I am using:
frmSurveyResponses has set as it's RecordSource a SELECT DISTINCTROW query with data from 2 tables. These 2 tables are linked by a One-to-Many join on the SrvID field.
The field which I want the SrvID data included in has SrvID as its control source and it's name is cboSrvID. Hence, I have also tried this in my code:
But get the same error message.
Does anyone know what could be the cause of this? Is it because of the relationship at the heart of the form that the recordset is not updateable? Are there any variables I can change which might make it updateable?
Thanks!
Russ
This is the code that I am using:
Code:
Private Sub Completed_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSurveyResponses"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Me.SrvID = Forms!frmSurveyResponses!SrvID
End Sub
frmSurveyResponses has set as it's RecordSource a SELECT DISTINCTROW query with data from 2 tables. These 2 tables are linked by a One-to-Many join on the SrvID field.
The field which I want the SrvID data included in has SrvID as its control source and it's name is cboSrvID. Hence, I have also tried this in my code:
Code:
Me.SrvID = Forms!frmSurveyResponses.Controls!cboSrvID
But get the same error message.
Does anyone know what could be the cause of this? Is it because of the relationship at the heart of the form that the recordset is not updateable? Are there any variables I can change which might make it updateable?
Thanks!
Russ