Private Sub frmZPP_Delete(RowIndex As Long)
Dim m_Query As ADODB.Command
On Error GoTo errLabel
If Alert(vbQuestion, "Are you sure", "Yes/No") = 1 Then <-- this is
where the error raises
rsZP.AbsolutePosition = RowIndex
Set m_Query = CreateQuery("spStoreProcedure")
m_Query.Parameters!Action = 3
m_Query.Parameters!ParStruId = rsZP!ParStruId
m_Query.Execute
rsZP.Delete adAffectCurrent
JGrid.Grid.ItemCount = rsZP.RecordCount
JGrid.Grid.Refetch 1
End If
Exit Sub
errLabel:
MsgBox Err.Description
End Sub
"Oenone" <oe****@nowhere.comwrote in message
news:TN**************@newsfe2-gui.ntli.net...
vanderlej wrote:
>i need a solution for this:
click on a button should raise "vbquestion" popup window, but all i
get is "Activex component can't object".
why?!
It's a bit easier to diagnose error messages if we can see the code that
is causing them. Can you post the code behind the button click?
--
(O)enone