Was just trying that Ted - thank you both!
--- In vantage@yahoogroups.com, Ted Koch <tkoch77@...> wrote:
>
> Thanks Jose.
>
> Tracy, the form name in E9 is InventoryQtyAdjustForm. Try:
>
> InventoryQtyAdjustForm.Close()
>
>
>
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Tuesday, October 16, 2012 8:59 AM
> Subject: Re: [Vantage] Re: Code to Close Form
>
> You shouldn't have to get a native reference to the form you already have
> the form
>
> SOForm.Close()
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> Â <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> Â <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Oct 16, 2012 at 8:54 AM, tracy.tmat <tracy.smith@...> wrote:
>
> > **
> >
> >
> > Thank you - the form does close but re-opens (blank) straightaway... is
> > this expected behaviour?
> >
> >
> > --- In vantage@yahoogroups.com, Ted Koch <tkoch77@> wrote:
> > >
> > > Here is an example in Epicor 9.
> > >
> > >Â Â Â Â Dim frm As
> > Epicor.Mfg.UI.App.InventoryQtyAdjEntry.InventoryQtyAdjustForm =
> > Ctype(csm.GetNativeControlReference("2dcd1674-5e34-4d98-b493-c75747027376"),
> > Epicor.Mfg.UI.App.InventoryQtyAdjEntry.InventoryQtyAdjustForm)
> > >Â Â Â Â frm.Close()
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: tracy.tmat <tracy.smith@>
> >
> > > To: vantage@yahoogroups.com
> > > Sent: Tuesday, October 16, 2012 6:17 AM
> > > Subject: [Vantage] Code to Close Form
> > >
> > > Have got the following working on leaving the Part Number field on
> > Inventory Qty Adjustment (using the code advised by Rob) but am unsure on
> > how / if it is possible to put a command to close the form? We're on
> > Vantage 8.03.409a - Thanks.
> > >
> > >
> > >Â Dim Password As String = InputBox("Please enter the Password to
> > continue","Password")
> > >Â 'MsgBox("Your Input is "& Password)
> > >Â If Password <> "Test" Then
> > >Â *Close Form Code Here*
> > >Â Else
> > >Â End If
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must
> > have already linked your email address to a yahoo id to enable access. )
> > > (1) To access the Files Section of our Yahoo!Group for Report Builder
> > and Crystal Reports and other 'goodies', please goto:
> > http://groups.yahoo.com/group/vantage/files/.
> > > (2) To search through old msg's goto:
> > http://groups.yahoo.com/group/vantage/messages
> > > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >Â
> >
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
> [Non-text portions of this message have been removed]
>