PeteJohnston
Programmer
I'm opening a recordset with a different selection so I'm checking first whether it is already open before closing it.
The recordset is open according to the values of dteData.rsAgentDetails.State and adStateOpen so I would think it would be happy to do the Close but instead I get the error message
Operation is not allowed in this context
I know it was working yesterday so I must have done something this morning to screw it up but I can't think what I've done. Anyone have any ideas?
PeteJ
(Contract Code-monkey)
It's amazing how many ways there are to skin a cat
(apologies to the veggies)
Code:
If dteData.rsAgentDetails.State = adStateOpen Then
dteData.rsAgentDetails.Close
End If
dteData.AgentDetails txtAgentID
Operation is not allowed in this context
I know it was working yesterday so I must have done something this morning to screw it up but I can't think what I've done. Anyone have any ideas?
PeteJ
(Contract Code-monkey)
It's amazing how many ways there are to skin a cat
(apologies to the veggies)