|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
vbQuestion errorhello
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?! thanks vanderlej wrote:
> i need a solution for this: It's a bit easier to diagnose error messages if we can see the code that is > click on a button should raise "vbquestion" popup window, but all i > get is "Activex component can't object". > why?! causing them. Can you post the code behind the button click? -- (O)enone 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 Show quoteHide quote "Oenone" <oen***@nowhere.com> wrote in message news:TNaeh.656$Dr3.50@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 > vanderlej wrote:
> If Alert(vbQuestion, "Are you sure", "Yes/No") = 1 Then <-- Alert() isn't a standard VB.net function. It seems reasonable to assume that > this is where the error raises the error is occurring inside it. What is the code for the Alert() function? Does it use any COM components? Are they installed and registered on your system? If everything looks correct, post the code for Alert() and tell us which line that fails on. -- (O)enone "vanderlej" <vander***@mail.danebi.hr> schrieb: .... looks like Classic VB code. You may want to post your question to a > 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 Classic VB group (hierarchy "microsoft.public.vb.*"). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Sorry, it's: "ActiveX component can't create object".
Show quoteHide quote "vanderlej" <vander***@mail.danebi.hr> wrote in message news:elbbap$oj4$1@sunce.iskon.hr... > hello > 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?! > thanks >
DataTable FillSchema error - Pulling my hair out!
Namespace for stdole? Data access layer for SQL Server & MS Access Installing a windows service simple question Is it possible to display images on desktop (not as an icon)? Trigger a Help event. Re: Turn off deprecated warnings? Re: Turn off deprecated warnings? Re: Which do you prefer? |
|||||||||||||||||||||||