R
Robert
Error: "The table tblRequisition is already opened
exclusively by another user, or it is already open through
the user interface and cannot be manipulated
programmatically.
That's the error I am getting, and yes it is open by the
user interface through the current form frmDescription.
However, I need to be able to open a different form that
has an underlying query that is also based on the table
tblRequisition. The code I have written works except for
the error message. Any suggestions or should I quit and
start over by using a recordset or recordsetclone?
Your help is appreciated and I thank you in advace. Here
is my code...
Private Sub cmdViewReq_Click()
Dim strForm As String
Dim strWhere As String
strForm = "frmReqEdit"
strWhere = "ReqNum = '" & forms!frmDescription!ReqNum
DoCmd.OpenForm FormName:=strForm, WhereCondition:=strWhere
End Sub
exclusively by another user, or it is already open through
the user interface and cannot be manipulated
programmatically.
That's the error I am getting, and yes it is open by the
user interface through the current form frmDescription.
However, I need to be able to open a different form that
has an underlying query that is also based on the table
tblRequisition. The code I have written works except for
the error message. Any suggestions or should I quit and
start over by using a recordset or recordsetclone?
Your help is appreciated and I thank you in advace. Here
is my code...
Private Sub cmdViewReq_Click()
Dim strForm As String
Dim strWhere As String
strForm = "frmReqEdit"
strWhere = "ReqNum = '" & forms!frmDescription!ReqNum
DoCmd.OpenForm FormName:=strForm, WhereCondition:=strWhere
End Sub