Ending instance in VBA Access

Below is my custom code for file dailog application which performs a check, if a particular sheet exists or not. whenever I run this code an instance is created and can be viewed in task manager. I would like to end this instance, as this code is dependent
on another code. cansomebody guide me through at whatpoints instace can be ended. Its kinda bugging me!
Private ApXLe As Object
Private Const Metadatasheet As String = "Metadatasheet"
Public Function Dailogbox()
Dim strFile As String
Dim xlWShe As Object
Dim fld As DAO.Field
Set ApXLe = CreateObject("Excel.Application")
Set xlWShe = Nothing
Do
With Application.FileDialog(1) ' msoFileDialogOpen
.Filters.Clear
.Filters.Add "Excel workbooks (*.xls*)", "*.xls*"
If .Show Then
strFile = .SelectedItems(1)
Set xlWShe = GetWorksheet(ApXLe, strFile)
Forms("Export").Text14 = strFile
'ApXLe.Quit
'Set ApXLe = Nothing
'Exit Function
Else
MsgBox "No workbook specified!", vbExclamation
ApXLe.Quit
'Set ApXLe = Nothing
Exit Function
End If
End With
Loop While xlWShe Is Nothing
End Function
Private Function GetWorksheet(ApXLe, file) As Object
Dim xlWBke As Object
Set GetWorksheet = Nothing
Set xlWBke = ApXLe.Workbooks.Open(file)
On Error Resume Next
Set GetWorksheet = xlWBke.Worksheets(Metadatasheet)
On Error GoTo 0
If Not GetWorksheet Is Nothing Then _
Exit Function
MsgBox "Workbook '" & file & "' doesn't contain sheet '" & Metadatasheet & _
"'. Choose the correct workbook.", vbExclamation
'xlWBke.Close Flase
'Set xlWBke = Nothing
End Function

I assume that this is not the complete code of Dailogbox - you open a workbook but you don't do anything useful with it.
If you want to do something with the workbook, place code for it below the line
    Loop While xlWShe
Is Nothing
and below that code, insert
    xlWShe.Parent.Close SaveChanges:=False ' or True if you want to save changes
    ApXLe.Quit
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • SQL Query string in VBA Access 2010

    Hi everyone,
    I am writing sql queries in VBA Access 2010.
    Now, i am very new to VBA programming, so i don't know how i have to write te string for the query.
    I mean, are the " a,d _& sings in the good place?
    The query sits behind a button on the form and when i use the form and click on the button i get the following error
    This is the code i wrote:
    Option Compare Database
    Option Explicit
    Private Sub Knop9_Click()
    Dim bedrijf As String
    Dim startdatum As Date
    Dim einddatum As Date
    Dim aantal_uren_jaarlijks As Double
    Dim gevolgde_uren As Double
    Dim resterende_uren As Double
    Dim naam As String
    'Voeg de waarden die ingevuld werden in het form in de variabelen
    Tekst1.SetFocus
    bedrijf = Tekst1.Text
    Tekst3.SetFocus
    startdatum = Tekst3.Text
    Tekst5.SetFocus
    einddatum = Tekst5.Text
    Tekst7.SetFocus
    gevolgde_uren = Tekst7.Text
    Tekst11.SetFocus
    naam = Tekst11.Text
    CurrentDb.Execute "UPDATE Lan_landmeter " _
    & "SET OpleidingsBedrijf =" & bedrijf & " ,Opleiding_startdatum =#" & startdatum & "#,Opleiding_einddatum =#" & einddatum & "#,Aantal_opleidingsuren_vast=20,Aantal_gevolgde_uren =" & gevolgde_uren & ",Aantal_resterende_uren=0" _
    & "WHERE Id_landmeter =" & naam & ""
    CurrentDb.Close
    End Sub
    Did i wrote the query string right?
    Thx

    In Access create a View showing the information you want, then in design mode click View, SQL to see teh SQL you need. now make sure the SQL you build in VBA is exactly the same. so in the Immediate window type a ? then copy paste your code then press Enter
    to see the result, EG:
    ?"UPDATE Lan_landmeter " _
            & "SET OpleidingsBedrijf =" & bedrijf & " ,Opleiding_startdatum =#" & startdatum & "#,Opleiding_einddatum =#" & einddatum & "#,Aantal_opleidingsuren_vast=20,Aantal_gevolgde_uren
    =" & gevolgde_uren & ",Aantal_resterende_uren=0" _
            & "WHERE  Id_landmeter =" & naam & ""
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Thinking of purchasing Time Capsule.... Can I access my documents saved on (Home Network) Time Capsule from another Network??? For instance, I can access my documents saved on MyBookLive (which is connected to my wifi) from ANY wifi connection...

    Thinking of purchasing Time Capsule.... Can I access my documents saved on (Home Network) Time Capsule from another Network??? For instance, I can access my documents saved on MyBookLive (which is connected to my wifi) from ANY wifi connection... Like when I'm at school I can download documents stored on my MyBookLive at home.... I love this feature... But I would prefer to keep my products apple... So my question is can I access my documents from ANYWHERE with Time Capsule???
    Other products I have: MacBook (2009 limited edition it's aluminum) two iPad2 (2012) iPhone 5 (2012) two iphone4 iPod touch (2010) iPod Nano (2011)

    Remote access to TC is allowed by BTMM and iCloud service.
    Not for ipad or iphone.. only the Macbook although I think people have some work arounds..
    NOTE. Your school firewall should block it. If I was still working in network admin I would. ie you are risking the whole network to get access to files unchecked for viruses.. and please don't just say Macs don't get viruses, you can still be the source of the infection even if you don't suffer the disease. Just a carrier.
    http://support.apple.com/kb/HT3486

  • Error when re-starting an SQL Server Instance from VBA - [SQL-DMO]Service Control Error: Access is denied.

    Our Application needs to have the use of the [Named Pipes] and [TCP/IP] Protocols.  To save our Users the hassle of having to enable them manually our application has always done it for them and then stopped and restarted SQL Server.  However
    since the advent of Vista and Windows 7, the restart stopped working.  We solved the problem by detecting the failure to re-start and giving Users sufficient instructions for them to do it themselves.  Since this only occurs during installation on
    the Server, this approach has not been too much of a hassle.  However we would like to tidy this up if possible. This the VBA code that is causing the problem:
        obj_SQLServerInstance2.Start _
            g_SQL_UseWindowsAuthentication, _
            SQLServerInstance, _
            UserName, _
            Password
    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Does anyone know how to resolve the problem?

    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Hello Brian,
    Under Windows 7 you have to run the VBA script with admin permission, a normal user don't have permissions to start/stop services.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Get directory of excel file in VBA Access

    Background: Access database is established. A procedure is written in Access VBA. When I run the procedure it selects the path of 'excel file' and opens it, slpits the data into different tables. To improvise, a form is created with import
    button on it. when I click on it, the procedure is executed.
    Problem: How do I do the following steps by clicking on the import button in Access VBA: click_import_button >> Choose the excel file dailog box opens >> select the excel file >> Execute the procedure.
    Following is my code(some part of it is deleted), with the path mentioned;
    Public Sub trial()
    Dim xlx As Object, xlw As Object, xls As Object, xlc As Object
    Dim vPartDes As String, vPartWeight As Double
    Dim vPartLength As Double, vPartWidth As Double
    Dim vPartHeight As Double, vBZA As String
    Dim vSAAname As String, vSAAnumber As String, vBMName As String, vBMnumber As String
    Dim blnEXCEL As Boolean
    Dim uid As Integer
    Dim rsUID As DAO.Recordset
    Dim vSNR As String, vNewSNR As String, VUID As String
    Dim rs, rsNewSnr, qs, js, ks, hs As DAO.Recordset
    'Dim wrkCurrent As DAO.Workspace
    Dim mydb As DAO.Database
    blnEXCEL = False
    'Establish an EXCEL application object
    On Error Resume Next
    Set xlx = GetObject(, "Excel.Application")
    If Err.Number <> 0 Then
    Set xlx = CreateObject("Excel.Application")
    blnEXCEL = True
    End If
    Err.Clear
    On Error GoTo 0
    'Change True to False if you do not want the workbook to be visible when the code is running
    xlx.Visible = False
    Set xlw = xlx.Workbooks.Open("C:\Users\YSRINID\Desktop\Book1.xls", True) 'opens in read-only mode
    'Actual name of the worksheet
    Set xls = xlw.Worksheets("Sheet1")
    Set xlc = xls.Range("F2") ' This is the first cell (reference) that contains data (non-header information)
    Set mydb = CurrentDb()
    'Set wrkCurrent = DBEngine.Workspaces(0)
    'wrkCurrent.BeginTrans
    ' write data to the recordset
    Do While Not IsEmpty(xlc.Value)
    vBMnumber = xlc.Offset(0, -4)
    vBMName = xlc.Offset(0, -3)
    vSAAnumber = xlc.Offset(0, -2)
    vSAAname = xlc.Offset(0, -1)
    vSNR = xlc.Value
    vNewSNR = xlc.Offset(0, 1).Value
    vPartDes = xlc.Offset(0, 2).Value
    vPartWeight = xlc.Offset(0, 3).Value
    vPartLength = xlc.Offset(0, 4).Value
    vPartWidth = xlc.Offset(0, 5).Value
    vPartHeight = xlc.Offset(0, 6).Value
    vBZA = xlc.Offset(0, 7).Value
    Dim tsql, usql, vsql, wsql, xsql As String
    'Search BMnumber and SAAnumber combination in Variant_SAA
    wsql = " SELECT * FROM Variant_SAA where BMnumber like '" & vBMnumber & "' and SAAnumber like '" & vSAAnumber & "'"
    Set ks = mydb.OpenRecordset(wsql)
    If ks.EOF Then
    mydb.Execute "INSERT INTO Variant_SAA(BMnumber,SAAnumber) values('" & vBMnumber & "', '" & vSAAnumber & "') "
    'Search for SNR or NewSNR
    tsql = "SELECT * FROM SNR_Log where SNR like '" & vSNR & "' or SNR like '" & vNewSNR & "'"
    Set rs = mydb.OpenRecordset(tsql)
    If rs.RecordCount > 0 Then
    rs.MoveFirst
    VUID = rs!uid
    Else
    VUID = -1
    End If
    If VUID > 0 Then
    ' Update information in Part_Source table
    mydb.Execute "UPDATE [Part_Source] SET PartDes = '" & vPartDes & "', PartWeight = '" & vPartWeight & "' , PartLength ='" & vPartLength & _
    "' , PartWidth= '" & vPartWidth & "', PartHeight= '" & vPartHeight & "' , BZA = '" & vBZA & "' WHERE UID like '" & VUID & "'"
    Else
    ' Insert part data into Part_Source table
    mydb.Execute "INSERT INTO Part_Source(PartDes, PartWeight, PartLength , PartWidth , PartHeight , BZA) values ('" & vPartDes & "', '" & _
    vPartWeight & "', '" & vPartLength & "', '" & vPartWidth & "', '" & vPartHeight & "', '" & vBZA & "')"
    ' Read UID of last record
    Set rsUID = mydb.OpenRecordset("select @@identity")
    Debug.Print rsUID(0)
    VUID = rsUID(0)
    ' take UID and insert into SNR_log with SNR
    mydb.Execute "INSERT INTO SNR_log (UID, SNR) values ('" & VUID & "','" & vSNR & "')"
    End If
    'Search for SAA and UID combination in SAA_Part
    xsql = " SELECT * FROM SAA_Part where SAAnumber like '" & vSAAnumber & "' and UID like '" & VUID & "' "
    Set hs = mydb.OpenRecordset(xsql)
    If hs.EOF Then
    mydb.Execute "INSERT INTO SAA_Part(SAAnumber,UID) values ('" & vSAAnumber & "', '" & VUID & "')"
    Else
    Set xlc = xlc.Offset(1, 0)
    End If
    Loop
    'If MsgBox("Save all changes?", vbQuestion + vbYesNo) = vbYes Then
    'wrkCurrent.CommitTrans
    'Else
    'wrkCurrent.Rollback
    'End If
    'Set wrkCurrent = Nothing
    'Close Recordsets
    rs.Close
    Set rs = Nothing
    rsNewSnr.Close
    Set rsNewSnr = Nothing
    qs.Close
    Set qs = Nothing
    js.Close
    Set js = Nothing
    ks.Close
    Set ks = Nothing
    hs.Close
    Set hs = Nothing
    'Close Database
    mydb.Close
    Set mydb = Nothing
    ' Close the EXCEL file without saving the file, and clean up the EXCEL objects
    Set xlc = Nothing
    Set xls = Nothing
    xlw.Close False
    Set xlw = Nothing
    Set xlx = Nothing
    Exit Sub
    If blnEXCEL = True Then xlx.Quit
    End Sub
    Thanks in advance!

    You can't just call your procedure since it opens a fixed workbook. (Moreover, it is missing an End If).
    Here is the On Click event procedure for a command button cmdImport:
    Private Sub cmdImport_Click()
        Dim strFile As String
        Dim xlx As Object, xlw As Object, xls As Object, xlc As Object
        Dim vPartDes As String, vPartWeight As Double
        Dim vPartLength As Double, vPartWidth As Double
        Dim vPartHeight As Double, vBZA As String
        Dim vSAAname As String, vSAAnumber As String, vBMName As String, vBMnumber As String
        Dim blnEXCEL As Boolean
        Dim uid As Integer
        Dim rsUID As DAO.Recordset
        Dim vSNR As String, vNewSNR As String, VUID As String
        Dim rs, rsNewSnr, qs, js, ks, hs As DAO.Recordset
        'Dim wrkCurrent As DAO.Workspace
        Dim mydb As DAO.Database
        With Application.FileDialog(1) ' msoFileDialogOpen
            .Filters.Clear
            .Filters.Add "Excel workbooks (*.xls*)", "*.xls*"
            If .Show Then
                strFile = .SelectedItems(1)
            Else
                MsgBox "No workbook specified!", vbExclamation
                Exit Sub
            End If
        End With
        blnEXCEL = False
        'Establish an EXCEL application object
        On Error Resume Next
        Set xlx = GetObject(, "Excel.Application")
        If Err.Number <> 0 Then
            Set xlx = CreateObject("Excel.Application")
            blnEXCEL = True
        End If
        Err.Clear
        On Error GoTo 0
        'Change True to False if you do not want the workbook to be visible when the code is running
        xlx.Visible = False
        Set xlw = xlx.Workbooks.Open(strFile, True) 'opens in read-only mode
        'Actual name of the worksheet
        Set xls = xlw.Worksheets("Sheet1")
        Set xlc = xls.Range("F2") ' This is the first cell (reference) that contains data (non-header information)
        Set mydb = CurrentDb
        'Set wrkCurrent = DBEngine.Workspaces(0)
        'wrkCurrent.BeginTrans
        ' write data to the recordset
        Do While Not IsEmpty(xlc.Value)
            vBMnumber = xlc.Offset(0, -4)
            vBMName = xlc.Offset(0, -3)
            vSAAnumber = xlc.Offset(0, -2)
            vSAAname = xlc.Offset(0, -1)
            vSNR = xlc.Value
            vNewSNR = xlc.Offset(0, 1).Value
            vPartDes = xlc.Offset(0, 2).Value
            vPartWeight = xlc.Offset(0, 3).Value
            vPartLength = xlc.Offset(0, 4).Value
            vPartWidth = xlc.Offset(0, 5).Value
            vPartHeight = xlc.Offset(0, 6).Value
            vBZA = xlc.Offset(0, 7).Value
            Dim tsql, usql, vsql, wsql, xsql As String
            'Search BMnumber and SAAnumber combination in Variant_SAA
            wsql = " SELECT * FROM Variant_SAA where BMnumber like '" & vBMnumber & "' and SAAnumber like '" & vSAAnumber & "'"
            Set ks = mydb.OpenRecordset(wsql)
            If ks.EOF Then
                mydb.Execute "INSERT INTO Variant_SAA(BMnumber,SAAnumber) values('" & vBMnumber & "', '" & vSAAnumber & "') "
                'Search for SNR or NewSNR
                tsql = "SELECT * FROM SNR_Log where SNR like '" & vSNR & "' or SNR like '" & vNewSNR & "'"
                Set rs = mydb.OpenRecordset(tsql)
                If rs.RecordCount > 0 Then
                    rs.MoveFirst
                    VUID = rs!uid
                Else
                    VUID = -1
                End If
                If VUID > 0 Then
                    ' Update information in Part_Source table
                    mydb.Execute "UPDATE [Part_Source] SET PartDes = '" & vPartDes & "', PartWeight = '" & vPartWeight & "' , PartLength ='"
    & vPartLength & _
                                 "' , PartWidth= '" & vPartWidth & "', PartHeight= '" & vPartHeight
    & "' , BZA = '" & vBZA & "' WHERE UID like '" & VUID & "'"
                Else
                    ' Insert part data into Part_Source table
                    mydb.Execute "INSERT INTO Part_Source(PartDes, PartWeight, PartLength , PartWidth , PartHeight , BZA) values ('" & vPartDes & "', '" &
                                 vPartWeight & "', '" & vPartLength & "', '" & vPartWidth
    & "', '" & vPartHeight & "', '" & vBZA & "')"
                    ' Read UID of last record
                    Set rsUID = mydb.OpenRecordset("select @@identity")
                    Debug.Print rsUID(0)
                    VUID = rsUID(0)
                    ' take UID and insert into SNR_log with SNR
                    mydb.Execute "INSERT INTO SNR_log (UID, SNR) values ('" & VUID & "','" & vSNR & "')"
                End If
            End If
            'Search for SAA and UID combination in SAA_Part
            xsql = " SELECT * FROM SAA_Part where SAAnumber like '" & vSAAnumber & "' and UID like '" & VUID & "' "
            Set hs = mydb.OpenRecordset(xsql)
            If hs.EOF Then
                mydb.Execute "INSERT INTO SAA_Part(SAAnumber,UID) values ('" & vSAAnumber & "', '" & VUID & "')"
            Else
                Set xlc = xlc.Offset(1, 0)
            End If
        Loop
        'If MsgBox("Save all changes?", vbQuestion + vbYesNo) = vbYes Then
        'wrkCurrent.CommitTrans
        'Else
        'wrkCurrent.Rollback
        'End If
        'Set wrkCurrent = Nothing
        'Close Recordsets
        rs.Close
        Set rs = Nothing
        rsNewSnr.Close
        Set rsNewSnr = Nothing
        qs.Close
        Set qs = Nothing
        js.Close
        Set js = Nothing
        ks.Close
        Set ks = Nothing
        hs.Close
        Set hs = Nothing
        'Close Database
        mydb.Close
        Set mydb = Nothing
        ' Close the EXCEL file without saving the file, and clean up the EXCEL objects
        Set xlc = Nothing
        Set xls = Nothing
        xlw.Close False
        Set xlw = Nothing
        Set xlx = Nothing
        If blnEXCEL = True Then xlx.Quit
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Can't printing in front-end when implement LOCL access method 'G'

    We are implementing ECC5.0 and print Purchase Order in normal status.But in recent,user print PO by long printer name with some trouble.So we check the notes,and it recommand us to implement access method 'G'.It seems every thing is OK on front-end printing.Still not work for printing PO on front-end output immediate.If we choose short printer name and access method 'F',it work fine.But SAP will no longer develop method 'F'.Please advise it.

    SAP PO is using background printing. SAP frontend print doesn't support background printing.
    As per SAP Frontend document, You cannot perform front-end printing in the background, as there is not connection to the front end.
    For this, you need to configure network printer.
    Thanks,
    Miral.

  • Front end admin web app access

    Is there any way to allow admin users access to all web app records from the front end? We are building an app where regular secure zone users update their own records and are finding the back end admin screens for web apps too restrictive. It would be much easier to build admin functionality on the front end. Anyone have any thoughts on how to do this?

    Custom solution developed with JDBC within VC.

  • Front - end print with new access method G - having issues for some users

    Hi Gurus,
    Recently we have implemented the new access method G for front-end printing. it is working fine for 90% users in our company. but some users having problems in printing to WINDEFAULT using this new method.
    Here is the SAP GUI trace file for the error that they are getting.
    (Error)(25.09.09 15:42:36.444):    CALL METHOD "CreateControl"[DispID=5] OF [#1/0x0AE31790/1/{83658045-6571-3232-7082-797884697868}]
                        #0: LONG "101"
                        #1: STRING "SAPFPRINT.sapfprintCtrl.1"
                        #2: LONG "0"
                        #3: LONG "10"
    IDispatch::Invoke raised exceptionException occurred
    (Error)                       :   
    (Error)                       :    ****************************ERROR OCCURED IN MODULE: [{83658045-6571-3232-7082-797884697868}]******************************************************************************************************
    (Error)                       :    PROGRAM_ID                                 |MODULE_NAME              |METHOD_NAME       |ERROR DESCRIPTION         |VERSION                    |GUI VERSION               |MODULE_PATH              |
    (Error)                       :    *****************************************************************************************************************************************************************************************************
    (Error)                       :    {83658045-6571-3232-7082-797884697868}     |Class name not found     |CreateControl     |Create control failed     |Version info not found     |Gui Version not found     |Module doesnot exist     |
    (Error)                       :    *****************************************************************************************************************************************************************************************************
    (Error)                       :   
    (Error)                       :    Exception fire by :SAP Frontend Server
    (Error)                       :    Exception info:Create control failed
    (Error)                       :    Exception code:65535
    Did any one face this error? what could be the resolution?
    We are already on SAP GUI 710 patch level 11
    DISP+Work  : 229
    Appreciate your answers
    Thanks,
    Srini

    Usually this means, that some necessary controls are not properly registered in the registry and hence can't be found. You may solve that by removing the SAPGUI from the PC completely, booting the machine and reinstall the GUI.
    Markus

  • End User Rule View Access Denied

    Hi,
    This has been discussed here, but after trying all possible options it still doesn't seem to be working.
    I am using a rule in a end user task, which throws "View Access Denied to Subject on Rule" error.
    I've set the rule authType to "EndUserRule" and
    <ObjectRef type='ObjectGroup' id='#ID#All' name='All'/>
    for MemberObjectGroups.
    Still it would keep throwing same error. I even used:
    <RunAsUser>
    <ObjectRef type='User' id='#ID#Configurator' name='Configurator'/>
    </RunAsUser>
    Still not success.....??? Any idea what could be wrong?
    I am using IdM Version 5.5
    -Thanks

    Hmmm...
    Seems to be working now...all I did was a restarted the application server??? Tried the same steps again in a different environment, and worked without a restart. Must be something odd with one particular environment.
    -Thanks though for the reply!
    -\

  • Never ending loop prevents all access on Prime pla...

    Two or three weeks ago I signed up to Prime Places. I received the post card last week and tried to verify location. Upon signing in to the system it took me to a URL that is TOTALLY STUCK. I then tried to sign in on another browser and it went directly upon signin to the same looping URL.
    My concern is that since it only loops I can't access any services inside Here.com. As soon as I signed in on my other browser (with my username) the loop started. MY WHOLE username ONLY LOOPS to that url. I have no way of accessing anything on here.com.
    I tried callin switchboard and I was cut off since I don't have a name. I live in Finland.
    Can you please contact directly here support internally because I'm totally lost. I repeat, if I sign in it loops immediately on my username!
    What to do?
    Here's the url http://primeplaces.here.com/places/verify/246ud9y7-f562061138fa4d59945c6ee2fc13b108

    Hi,
    The scenario here is that we need to add a line item (component) in IW32. We have to make use of Workflow to ensure that the component is added. If there are errors in adding the line item the workflow should get executed again untill it has successfully added a component/s.
    For this reason we are triggering a BOR object method (configured as triggering event in the task of WF) from 1 of the BADIs and calling a BAPI to update the work order.
    The problem is that even when the component has been added successfully the workflow doesn't end and keep on creating several similar components.
    I have tried to use loop condition and set the container value of flag to 'X' using FM SAP_WAPI_WRITE_CONTAINER but still the workflow keeps on creating the components in the background.
    Would appreciate your help on getting this solved, since this is a very critical delivery and also my 1st object in WF.
    Thanks,
    Sugandh

  • Several instances of MDB accessing a Q and one rolling back a message

    I have one input queue being served by several instances of an identical
              MDB.
              When a problem occurs with an MDB processing one of the messagse read on the
              queue (for instance, it could not forward the answer, the bean is being
              brought down through an exception or otherwise), I would like to rollback
              the message it was processing since it could not complete the job.
              I would like to let the container manage the transaction and use
              setRollbackOnly when the instance of MDB fails or has to abrupty end. What
              would happen to messages that are currently being processed by other MDBs
              (and thus have not been committed) and followed the message that caused the
              rollback in the input queue? In other words, uncomitted messages submitted
              to other MDB instances after the failed MDB started the transaction that
              ultimately failed. Will they also be rollbacked?
              

              Wim van der Kerkhoven wrote:
              > I have one input queue being served by several instances of an identical
              > MDB.
              >
              > When a problem occurs with an MDB processing one of the messagse read on the
              > queue (for instance, it could not forward the answer, the bean is being
              > brought down through an exception or otherwise), I would like to rollback
              > the message it was processing since it could not complete the job.
              >
              > I would like to let the container manage the transaction and use
              > setRollbackOnly when the instance of MDB fails or has to abrupty end. What
              > would happen to messages that are currently being processed by other MDBs
              > (and thus have not been committed) and followed the message that caused the
              > rollback in the input queue? In other words, uncomitted messages submitted
              > to other MDB instances after the failed MDB started the transaction that
              > ultimately failed. Will they also be rollbacked?
              No. Only the message participating in the rolled back transaction
              will be rolled back. Messages in other transactions will not be
              affected.
              >
              >
              >
              >
              

  • ESS - Creating a Front End Selection Screen, that accesses SAP T-code

    Hi,
    We have an ESS Portal in our company.
    I have been given the following request:
    For a specific transaction, create a selection screen in the portal that would be a modified version of the selection screen that exists in the SAP system.
    From this front-end in the selection screen, the specific transaction within the SAP system would be accessed.
    How is this done? What do I need to know about the overall process?
    Please help.
    Thanks,
    John

    Just to clarify,
    Create the transaction and selection screen in the SAP system.
    Then ask the Portal team to create an iView for this transaction.
    What if I need to say get the Internal SAP employee number from the user's sign on information?
    Thanks,
    John

  • Problem setting project end point (can't access the end point marker)

    I can't seem to set my project end point because the slider control that adjusts the spacing of the measures is obstructing my pointer from being able to click on the end point marker. Any hints as to how I can move the coation of this slider control so that I can access the end point marker with my pointer?

    6ftmama wrote:
    FYI - the end point marker now turns into a bracket when you hover over it.
    THe End-of-Project Marker doesn't change at all. What you see is a change of the Mouse Pointer.
    This is called a "Click Zone" where the Mouse Pointer changes to different shapes when moving over or click on an object or an area in the window.
    Here the Mouse Pointer changes to "Trim Tool" or "Resize Tool".
    Pointer Tool:
    Resize Tool:
    It is the same Tool wne you move the Mouse Pointer of the right edge of a Region to resize its length.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Skype crashes. Can't end Skype.exe. Access is Deni...

    Lately I've been encountering this problem where Skype crashes and does not let me end the process. I'll try to include as much detail as I can. When the crash occurs, it isn't really announced. You can verify the crash has occurred by simply trying to change your status to Online, Away, Do Not Disturb, etc. If you go to change your status and nothing happens, then I know this crash that I'm referring to has indeed happened. You can close Skype normally. It will close, however, the process Skype.exe won't remove from the RAM. I'm on Windows 8, and if you go to Details on my Task Manager, you can see the process is still active. The RAM usage is not fluxuating, it's as if it's stuck. If you try to end the process once, nothing happens. If you try to end it a second time or more, you'll receive a message that says "Skype.exe cannot be terminated. Access is Denied." I'm not the only one with this problem. I've read that others have encountered it, too.
    The only way I can make it so I can use Skype again is to restart my computer because it's effectively the only way to clear my cache (that I know of). The occurring nature of this problem is sporadic. I tried to pinpoint it, but I just can't. Sometimes it happens when my Internet goes out. I reset my router, and when I reconnect, Skype becomes unresponsive. It doesn't only happen when I reconnect from an Internet disconnection. Sometimes it just happens without any change that I know of. I can go days without the problem occurring. Some days, the problem happens in periods that require me to restart multiple times to get it to work. Most people tell me to just use the Windows 8 version of Skype to avoid these issues, but Windows 8 lacks some of the ease of access that the Desktop version of Skype has that I've grown accustomed to as well as the ability to change the volume in my volume mixer. I'd have trouble with either version, honestly. Please respond when you can, any help and solutions will be much appreciated.
    Also, I want to note that if I I try to end the process when this crash has not occurred, it does end successfully. This problem, for me, is exclusive to this crash.
    My DxDiag: http://tny.cz/ea7c1ac9

    I'm having the same problem
    Since Microsoft take over skype I've never been able to run skype without problems. It seems that everytime they upgrade skype, this problem comes again.
    The worse part is, skype crashes, can't kill process (even with procexp, and whatever solution you think work), can't open new skype, connection wifi becomes instable, and after a while I lose connection to internet, can't even do a clean shutdown because it hangs when closing (I guess because of this special skype process that can't be killed).
    Every time I put the laptop to sleep, when I come in again, skype crashes, and the problem comes.
    I've more windows shutdowns in this last month than I had during the last 2 years.
    What is the solution ? Uninstall Skype and go for another chat/phone/video solution ? Can I've my credit money back ?
    Please fix this problem. I'm really very anoid with this new SKYPE FEATURE 
    Thank you
    JAV

  • Trial Ended But Can't Access PS

    I have already paid for my monthly service but can't access PS.  It says trial ended.  How do I transfer it from trial to membership?

    Creative Cloud Help / 
    Creative Cloud applications ask for serial number
    Products Affected
    Creative Cloud
    Photoshop CC
    Illustrator CC
    InDesign CC
    Show All
    Are you prompted to enter a serial number when you start a Creative Cloud (CC) application? There could be incorrect or missing information in your CC account. You could have a language conflict, or your computer may be unable to reach Adobe's activation servers.
    Try these solutions
    Verify your address
    Verify payment information
    Verify your birth date
    Set your language to International English
    Troubleshoot connectivity issues
    Log out and log back in to your account
    Still need help? Contact us. 
    Chat with an agent
    Chat nowAn agent is available 
    Related links
    Manage your membership | Creative Cloud
    Sign in, activation, or connection errors | CC, CS6, CS5.5

Maybe you are looking for