Automate the row selection

Hello,
I have access database as FE and teradata and peoplesoft as BE. In access database, i have a table with 5 columns and around 50,000 rows of data. I need to create the pass
through queries such that it selects the first row from the access table as a where clause and export the query results in excel format or access table. The query should then go to the 2nd row as a next where clause and append the results in the same excel
sheet or table.This process need to continue for all rows in the access table.

Simply build your pass-though query. Then build a second query in access that appends the data from the pass-though to a working (local) table.
Dim strSql As String
strSql = "select pass though #1"
CurrentDb.QueryDefs("myPass").SQL = strSql
CurrentDb.Execute "qryAppendFromPass"
strSql = "select pass though #2"
CurrentDb.QueryDefs("myPass").SQL = strSql
CurrentDb.Execute "qryAppendFromPass"
You thus do the above for the 5 queries.
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

Similar Messages

  • HOW to emphasize the row selected in a different colour

    Hi all,
    there is any way to set the selected row in a table in a different background-colour?
    i want to emphasize the row selected by user, i try this:
    <af:column headerText="#{res['abogados.nombre']}"
    sortProperty="Nombre" sortable="true"
    binding="#{backing_app_Abogados.column14}"
    id="column14">
    <af:outputText value="#{row.Nombre}"
    binding="#{backing_app_Abogados.outputText14}"
    id="outputText14"
    inlineStyle="background-color:#{bindings.AbogadosView1.currentRow.codigo == row.Codigo ? 'red' : 'transparent'};"/>
    </af:column>
    but this sets the outputText's background to red, i want to set in red all the row..
    any idea?

    Does Rado's following blog entry help: http://adf-rk.blogspot.com/2007/01/adf-oracle-form-like-overflow-in-adf.html

  • What happens when the row selection of a table is set as 'none'?

    I have a page, with a Search box, Departments and Employees tables. The user will enter a departmentId and click on Search button. Departments will be displayed. The departmentId column in Departments table is surrounded with a link. So when the user will click on the link, the desired employees will be displayed in the Employees table, if there is a view link between the VOs.
    Now suppose I have removed the view link. And the row selection of the Departments table is set as 'none'. So is it possible to get the desired employees of the chosen departmentId in this scenario, as because row selection has been disabled in the Departments table?
    I also dont want to use the Set Property Listener in this use case.

    Hi,
    If you have disabled rowselection and also are not implementing the selection listener? How will you find which row did the user select?
    Ramandeep

  • Capture the rows selected ,tableView

    Hi Friends,
    I have a requirement and i was searching in the forum and i have seen the same question been asked 
    Capture the rows selected in a multiselect table view (BSP)   but i couldn't able to judge how the thread is closed
    We have a tableView that is filled on selecting a value from a dropDownListBox.
    and now i select some rows from the table view and click on a button(say btn_ok)
    now the data is processed .
    now what is my requirement is when   i again run the page and select the same drop down value i want to see the rows to be already selected for which i have done before
    example
    dropdown -
    > a is selected
    table view
    1----> selected
    2
    3---->selected
    4
    5---->selected
    6
    btn ok
    next time i want to c these selected rows already as SELECTED
    Regards
    Bhavana

    Hi,
    Are you able to fetch single row? If yes then debug and try to solve it. I don't have SAP System right now but this will help you. First change your table selection mode "Multiple". After that write following code in your "OnInputProcessing"
    Sending Selected Field to the calling Screen
    DATA : tv      TYPE REF TO cl_htmlb_tableview,
           tv_data TYPE REF TO cl_htmlb_event_tableview,
           event   TYPE REF TO cl_htmlb_event.
    tv ?= cl_htmlb_manager=>get_data(
            request = runtime->server->request
            name    = 'tableView'
            id      = 'tv_field' ).
         RECEIVING
           data    = tv.
    tv_data = tv->data.
    w_field = tv_data->row_key.
    Where w_field is your field name. By the way this I used to get one row. Try debugging and may be you will find your way.
    Thanks,
    Muhammad Usman

  • How do I change the row selection by mouse movement

    How do I change the row selection on a jtable by mouse over events?
    Thanks, Randy

    got it thanks...

  • Need to get the row selected in table control without ay action

    Dear Team,
    I have a requirement in which I need to pass the row selected of a table control to a variable.
    Here I need to get the row selected with out any other action
    then the action of selection of a row.
    Is it possible to read table control values using FM DYNP_VALUES_READ.
    thanks in advance,
    regards,
    Sai

    HI,
    Sai Kumar Potluri
    I tried in IDES it working.
    Here is the code.
    REPORT  ZPRA_TC_D.
    TABLES : SCARR.
    CONTROLS TC TYPE TABLEVIEW USING SCREEN 1.
    DATA : SELLINE TYPE I,
           SELINDEX TYPE I.
    DATA : ACT LIKE SCARR-CARRID,
           ANT LIKE SCARR-CARRNAME.
    DATA : ITAB LIKE SCARR OCCURS 0 WITH HEADER LINE.
    CALL SCREEN 1.
    *&      Module  STATUS_0001  OUTPUT
    *       text
    MODULE STATUS_0001 OUTPUT.
      SET PF-STATUS 'ME'.
    *  SET TITLEBAR 'xxx'.
    SELECT * FROM SCARR INTO TABLE ITAB.
    ENDMODULE.                 " STATUS_0001  OUTPUT
    *&      Module  MOV  OUTPUT
    *       text
    MODULE MOV OUTPUT.
      MOVE-CORRESPONDING ITAB TO SCARR.
    ENDMODULE.                 " MOV  OUTPUT
    *&      Module  USER_COMMAND_0001  INPUT
    *       text
    MODULE USER_COMMAND_0001 INPUT.
    CASE SY-UCOMM.
    WHEN 'BACK' OR 'UP' OR 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'SEL'.
      GET CURSOR FIELD SCARR-CARRID LINE SELLINE.
      SELINDEX = TC-TOP_LINE + SELLINE - 1.
      READ TABLE ITAB INDEX SELINDEX.
      ACT = ITAB-CARRID.
      ANT = ITAB-CARRNAME.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0001  INPUT
    In Flow Logic.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0001.
    LOOP AT ITAB WITH CONTROL TC.
      MODULE MOV.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT ITAB.
    ENDLOOP.
    MODULE USER_COMMAND_0001.

  • How to get the row selected in af:inputComboBoxListOfValues

    Hi,
    Am using jdev 11.1.1.2.1.
    Am using af:inputComboBoxListOfValues component , i have made the component based on the " department id" and the display value is " department name".
    In the value change listener i want to get the selected department id but currently am getting only the department name.(using valueChangeEvent.getNewValue().toString())
    So is there any way to get the entire row and get the "department id" using that ??
    Please help.
    Thanks,
    Hari

    Sorry for the confusion, needed to check it out:
    this code should work:
        public void nameValueCangeListener(ValueChangeEvent valueChangeEvent) {
            FacesContext contxt = FacesContext.getCurrentInstance();
            valueChangeEvent.getComponent().processUpdates(contxt); // after this the new row is selected!
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("YOUR_LIST_BINDING_NAME");
            Row lFromList = (Row)list.getCurrentRow();
            Object lAttribute = lFromList.getAttribute("YOUR_ATTRIBUTE_YUO_WANT_TO_GET");
        }Timo

  • Capture the rows selected in a multiselect table view (BSP)

    Hi,
    My requirement is:
    I have a table view in which I can select multiple rows.
    I will be selecting some rows, and pressing a button.
    Functionality of button is written in Javascript, to open a popup window.
    But how will I capture which all rows were selected ?
    Should I use a Java code or ABAP code ?
    And where should I put that code ?
    I tried calling the method cl_hrrcf_iterator=>get_tv_attr in the Javascript of the button. But it doesnt work. But if its in DO_HANDLE_DATA it works. Why is it like that ?
    Is it possible in BSP, to use the function htmlbevent.obj.getSelectedRows() ? If so, how should the code be ?
    Could you please tell me some of the possible solutions.
    Would definitely appreciate quick replies.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    You can have the ABAP code itself. I had also faced with then same issue. Use the below piece of code form your requirements.
    In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START*
    *  Data : M_ROW_REF type <Structure type>
    *m_row_ref ?= p_row_data_ref*
    In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START*
    * DATA : CHK TYPE FLAG
    *case p_column_key.*
       when ' <Column Name>'.*
         CHK = m_row_ref-><Column Name>.*
          p_replacement_bee = CL_HTMLB_CHECKBOX=>FACTORY(
                                id                = p_cell_id
                              checked         = CHK ).
    In *Do Request*
    Data : loc_table_event type ref to cl_htmlb_event_tableview
    call method cl_hrrcf_iterator=>get_tv_attr
        exporting
          p_tv_id               = '<Tabe View ID'
          p_component_id        = me->component_id
          po_request            = me->request
        importing
          po_tv_event           = loc_table_event.
    The above methods are used to get the values which are selected in the table view and operated further.
    Reward points if useful.
    Regards,
    Gokul.N

  • Jtable problem in changing the row selected

    hi,
    I am displaying the oracle database information in JTable...user can make changes to a row...once he presses either ENTER,UP OR DOWN ARROW...the changes should be updated into the database...if there is some SQL exception,i am displaying JOptionPane to show the exception message ...i need to keep the selected row to be the one with errors...
    my problems are:
    i have written a function to update the change to the database...
    when should i call that...right now i am calling that in tableChanged method... is there any method to dissable the predefined keys and actions? becaz once user makes changes to a row and presses some key like up/down or enter,the control is getting transfered to the next row...
    plz give me the solution...
    here is part of my code....
    I am adding data later....
         model= new DefaultTableModel((Vector)null,columnNames);
         table = new JTable(model)
         public void tableChanged(TableModelEvent e)
              int firstRow = e.getFirstRow();
         if (e.getType()==TableModelEvent.UPDATE &&(firstRow!=TableModelEvent.HEADER_ROW))
              updateChangesToDatabase(row);
    /********in my update method i am setting the focus to the same row
    if i get exception....like this....
    JOptionPane.showMessageDialog (thisPanel,sb,"Error in UPDATING...",JOptionPane.ERROR_MESSAGE);
    table.requestFocusInWindow();
    table.setRowSelectionInterval(currentRow,currentRow);
         super.tableChanged(e);
              setUpTableData(); // method to add data...to table..
              table.setDragEnabled(false);
              table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
              JScrollPane scrollPane = new JScrollPane(table,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
              add(scrollPane,BorderLayout.CENTER);
    // this i am doing to reset keyboard action but not working....
              table.resetKeyboardActions();

    ye rammohan,
    you can change the data-element of the field or char of the data-element.
    if you try to change the name of the field, it deletes.
    so what you can do is, keep the field unchanged, add another field of your choice, using ABAP program, move the data from old field to new field, and then you can delete your old field.
    thx
    rams

  • How make datagrid cell clicking not to affect the row selected?

    Hi all,
    I made SelectionUnit as FullRow. The first column, second column, and so on, which can work well for selecting row when I clicking the cells of them.
    But I want the last column to remove the affection that the whole row is selected when I click last column cell.
    how to do it? thanks.
    <DataGrid ItemsSource="{Binding itemSource}" AutoGenerateColumns="False" RowHeight="25" SelectionUnit="FullRow"

    You could set the AutogenerateColumns property to false, define all columns in the XAML markup explicitly and then specify a CellTemplate for the last column and handle its MouseLeftButtonDown event to change the SelectionUnit property of the DataGrid. Here
    is an example for you:
    <DataGrid x:Name="dg" AutoGenerateColumns="False" RowHeight="25" SelectionUnit="FullRow">
    <DataGrid.Resources>
    <Style TargetType="DataGridCell">
    <EventSetter Event="PreviewMouseLeftButtonDown" Handler="cell_MouseLeftButtonDown"/>
    </Style>
    </DataGrid.Resources>
    <DataGrid.Columns>
    <DataGridTextColumn Binding="{Binding A}"/>
    <DataGridTextColumn Binding="{Binding B}"/>
    <DataGridTextColumn Binding="{Binding C}">
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <EventSetter Event="PreviewMouseLeftButtonDown" Handler="cell_MouseLeftButtonDownLast"/>
    </Style>
    </DataGridTextColumn.CellStyle>
    </DataGridTextColumn>
    </DataGrid.Columns>
    </DataGrid>
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    List<MyItem> items = new List<MyItem>();
    items.Add(new MyItem() { A = "1", B = "1", C = "1" });
    items.Add(new MyItem() { A = "2", B = "2", C = "2" });
    dg.ItemsSource = items;
    void cell_MouseLeftButtonDownLast(object sender, MouseButtonEventArgs e)
    dg.SelectionUnit = DataGridSelectionUnit.Cell;
    void cell_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    dg.SelectionUnit = DataGridSelectionUnit.FullRow;
    Please remember to mark all helpful posts as answer to close the thread and then please start a new thread if you have a new question.

  • Getting hold onto the row selected of a table

    Hi Gurus,
    To get to the selected row in the table.I tried the code below.
    The ViewObject: AssignedRespVO contains a Transient ViewObject i.e Select which is of Type String and has Default value : Y
    This code is running fine in some other PG but not in this PG...
    Can anybody tell me What is wrong with this code????? its urgent...
    public void handleSelectAssignedRespVO(String reqid)
    System.out.println("In handleSelectAssignedRespVO");
    OAViewObject vo = (OAViewObject)getAssignedRespVO1();
    if((vo != null) && (vo.getFetchedRowCount()>0))
    Row[] selectRows = vo.getFilteredRows("Select","Y") ;
    System.out.println(" Value of length: "+selectRows.length);// Always getting 0 (zero) here
    for(int i=0; i<selectRows.length; i++)
    AssignedRespVORowImpl selectedRows = (AssignedRespVORowImpl) selectRows;
    String respid = selectedRows.getAttribute("ResponsibilityId")+"";
    String respname = selectedRows.getAttribute("ResponsibilityName")+"";
    String strtate = selectedRows.getAttribute("StartDate")+"";
    String endate = selectedRows.getAttribute("EndDate")+"";
    System.out.println("value/AssignedRespVO/respid: "+respid);
    System.out.println("value/AssignedRespVO/respname: "+respname);
    System.out.println("value/AssignedRespVO/strtate: "+strtate);
    System.out.println("value/AssignedRespVO/endate: "+endate);
    System.out.println("to calling procedure");
    String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    String linestatus ="A";
    try
    catch(Exception e)
    Thanks,
    Sombit

    Hi Reetesh,
    As always thanks for the quick response.
    Yes...I do have the same AM for these two PGs but the calling COs are different.
    and in the same AM they are two different methods with near about same logic.
    Thanks,
    Sombit

  • How to adjust placement of two tables in webi depending on the rows selection

    Hi,
    I have a webi which has two tables. The prompts are on dates. As per requirement sometimes user selects one date or sometimes a range of dates.
    When One date is selected it works fine but when multiple dates are selected tables overlap each other. I can not place them side by side.
    Any idea how can I adjust?
    Regards
    Prashant

    Create two different section for each table in the report to avoid overlapping.
    For example :
    Section 1 - > table 1
    Section 2 -> table 2
    Regards,
    Pranay

  • To determine the number of rows selected in a table view (BSP)

    Hi,
    My requirement is:
    I would be selecting 1 row from a table view ( which is made multiselect for another requirement) , and press a button.
    The functionality of button is to open a popup window based on the row selected.
    I want to display an error message if more than 1 row is selected, and button is clicked.
    Message will say that "you cannot select more than 1 row".
    For this,  I need to know how I can get the number of selected rows in a table view.
    I tried using the below code.
    But I feel this will work only in DO_HANDLE_DATA method.
    The popup would open, even before control comes in this method.
      CALL METHOD cl_hrrcf_iterator=>get_tv_index
        EXPORTING
          p_id               = p_tableview_id
          pt_form_fields = table_form_fields
        IMPORTING
          pt_indices      = sel_row_index_tab.
    Could you please provide me with a solution.
    Quick replies will be highly appreciated.
    Thanks,
    Nisha Vengal.

    Hi ,
    Your TV :
    <htmlb:tableView id              = "tv1l"
                                   design          = "alternating"
                                   visibleRowCount = "10"
                                   fillUpEmptyRows = "true"
                               onRowSelection  = "MyEventRowSelection" <----This is the event you have to use
                                   selectionMode   = "MULTILINEEDIT"
                                  filter          = "SERVER"
                                   table           = "<%= some table %>" >
    in DO_REQUEST:
    DATA:  tv                  TYPE REF TO cl_htmlb_tableview,
           tv_event          TYPE REF TO cl_htmlb_event_tableview ,
           event             TYPE REF TO if_htmlb_data.
    event = cl_htmlb_manager=>get_event( request ).
    IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableview.
      tv_event ?= event.
      CASE event->event_server_name.
        WHEN 'MyEventRowSelection'.
    count = count + 1 .
    if count ne 1 .
    errmsg = 'Your message'.
    endif.
    ENDCASE.
    ENDIF.
    in View/Layout:
    <% if errmsg is not initial. %>
    <s cript t y p e   =   t e x t / j a v a s c r i p t >
    a l e r t ("<%= errmsg %>") .
    </ s c r i p t>
    <% clear errmsg. %>
    <% endif. %>
    errmsg is a class attribute of type string and count is also a class attribute of type c .
    Regards,
    Anubhav.
    Reward if useful
    Edited by: Anubhav Jain on Sep 19, 2008 3:08 PM

  • Report Script - How to get the total on the any number of rows selected

    Hi,<BR>I am using Essase and report script for the reporting purpose. In this i would like to know how to get the sum of all the rows selected. I know we can use the calculate row, but it has to be done with print row to display the newly created row. But i am using alphablox where this print row is not working. Is there any other alternative is there to get the sum of any number of rows, and displaying them??<BR>Please help me.<BR><BR>Regards<BR>R.Prasanna

    Pls check the structure and index.
    EMP_ID NUMBER(9) NOT NULL,
    EMP_CD           NUMBER(3),
    EMP_NO VARCHAR2(250 BYTE) NOT NULL,
    FROM_EFF_DT DATE NOT NULL,
    TO_EFF_DT DATE,
    CREATE INDEX IDX_EMP_NO ON EMP
    (EMP_NO)
    NOLOGGING
    TABLESPACE INDEXES
    PCTFREE 20
    INITRANS 10
    MAXTRANS 255
    STORAGE (
    INITIAL 56K
    NEXT 1784K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 4
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    NOPARALLEL;

  • Re: Getting the current selected Row & column in adf table

    Hi,
    Our requirement is we have to retrieve both the current row and column in adf table.
    We can retrieve the current row in the backing bean like
    ViewObject view = getViewObject();
    view.getCurrentRow();
    Is it possible to retrieve selected column id or column header text as we are getting for row?
    please give some sample.
    Thanks,
    Vijay.
    Edited by: Vijayakumar Palanisamy on Jun 23, 2011 2:23 AM

    Hi John
    My exact requirement,
    1.     We have collection of records in adf table
    2.     Each cell in the row has commandImageLink (Like adding approver, edit approver, delete etc)
    Currently it’s working fine for me in the commandImageLink listener, but the problem is table is refreshed 2 time,
    while selecting a record and commandImageLink is clicked, I have to avoid 2 times refreshing,
    If it’s possible to identify a particular cell in the row selection, I can avoid the image link listener.
    we are using Jdeveloper11.1.1.4.0
    Please suggest.
    Thanks,
    Vijay

Maybe you are looking for

  • Boot camp / partition problems, hard drive damaged?

    I was in the middle of using boot camp to allocate 13gb to windows when my macbook pro crashed (the crash screen with the turn off and restart text came up), then when i restarted and ran boot camp it said that my harddrive couldn't be partitioned an

  • Pick Ranking order 2 Bank in APP configuration

    Hi, In FBZP settings I have maintained the below: Payment Method     Currency     House Bank     Rank Order H                              PLN               PPAB                    1 H                              PLN               NDEAP             

  • Opening a response PDF in Acrobat Reader 9 or 10

    I am very new to LC ES3.  I just created a fillable form and distributed it and when I tested the Submit button I did get the responses in my response folder, but after trying to open it in Adobe Reader 9 and X it did not automatically check for new

  • How do I find my bookmarks and tagged pages? I update to newest Firefox and now they are gone- it looks like a completely new Firefox. What do I do?

    I update to newest Firefox and now they are gone- it looks like a completely new Firefox. What do I do? There is nothing in my toolbar, or history, or bookmarks. I have also none of my old slides or whatever they are called when I open a new tab. HEL

  • IWeb images and nav menu not displaying in IE

    Hi all, I've just created my second IWeb page: http://web.mac.com/benbruder/iWeb/Ben%20and%20CC%27s%20Garden/Welcome.html It displays fine on my MacBook Pro, and loads fine on a PC, but when the page finishes loading, the images and navigation menu b