Result display from 2 queries using VB code(macros)

Hi All,
I have an RRI report.when i execute Query1 it has to jump to query2.In Query1 i have fields Region and Quantity.in Query2 i have Region and sales order quantity.
Query1                                          Query2
Region   Quantity                         Region   SO Quantity
A            20                                  A            30
A            40                                  A            40
Result     60                                  Result     70
Assume above r the results of my Query1 and 2.I should get these 2 query results in workbook as below
Region   Quantity     SO Quantity      
A            60              70
I heard we can do this wring VB code(macros).can anybody help me out how to get this.
Thanks ,
vid.

can't you just make a 3rd excel sheet that does a VLOOKUP to the others to get the results and display them on a cover?_
or you could multi-cube...but I guess there's a reason that you don't want to do that

Similar Messages

  • How to send sms to mobile from tomcatserver using java code?

    Hi,
    Could you please let me know that,
    How to send sms to mobile from tomcatserver using java code? Please provide the code snippet.
    Thanks in advance.

    Yes, but something needs to send that message. You can't just take an arbitrary computer and send an SMS, it does not have the hardware to do that.
    So either you have a mobile through which you do that or more likely - you use some sort of online service to do it. Whatever choice you make will determine what code you will have to write to get it done. Nobody is going to deliver the code to you, that's your job. It is also your job to figure out what service you are going to use.

  • How to store the data read from excel using java code in Ms access database

    Hi. I wrote a code to read the data from excel. May i know how can i save it to Ms access database using java. Also i have many excels. So i should not connect the database using DSN. So is there any other way to achieve this?

    kramish wrote:
    Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
    just doing a quick Google came up with some pages:
    http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
    http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
    Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
    Kaj

  • Select from KONV using Additional Code in ABAP Query

    I'm attempting to modify an ABAP Query Infoset (using transaction SQ02) that already has a join in it between tables VBAP and VBAK, and two additional alias tables on KONV (to get price history for sales documents).  I wish to get history of all PN00 records from KONV.  I can get ONE record with the following code in the Record Processing of the Extras element in my Infoset:
    SELECT SINGLE KBETR KPEIN KMEIN KDATU
    INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE) FROM KONV
      WHERE KNUMV  = VBAK-KNUMV
      AND KPOSN  = VBAP-POSNR
      AND STUNR = 198
      AND ZAEHK = 01.
    But we have many counters (field ZAEHK) for the PN00 condition and I want to have a new row for each PN00 record in KONV.  I've tried some loop syntax, but I've not been able to get any code to function or return more than one row for each sales order item row (VBAP-POSNR).
    Thanks for any hints.
    Dan Gallagher

    Change it like this
    SELECT KBETR KPEIN KMEIN KDATU
      INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE)
      FROM KONV
    WHERE KNUMV = VBAK-KNUMV
       AND KPOSN = VBAP-POSNR
       AND STUNR = 198.
    ..... do something with this record and store
    ENDSELECT.

  • Data not displayed from List using h:datatable

    hi
    iam getting the error:
    Error getting property 'cell' from bean type of java.lang.String...
    can u please tell where might i have gone wrong.....and actually what does this error mean...
    iam using jsf 1.1,netbeans 5.5 and tomcat 5.5.17
    thanks in advance

    hi.......thank you very much
    iam getting different error :Error getting property 'Cell' from bean of type org.TData1
    here iam sending necessary part of code as the code is large....can u please check where iam going wrong..
    bean class
    public class Htpg
    List data=new ArrayList();
    UIData projectTable;
    private TData1 td;
    public Htpg() { }
    public List getData()
    try {
    Element element;
    int total = 0;
    while(i.hasNext()) {
    element=(Element)i.next();
    if(element.getName().equalsIgnoreCase("tr")) {
    if(i.hasNext()){
    element = (Element)i.next();
    if(element.getName().equalsIgnoreCase("td")) {
    td=new TData1(); // has getters and setters
    td.setCell(element.getContent().toString().trim());
    element = (Element)i.next();
    td. setMade(element.getContent().toString().trim());
    element = (Element)i.next();
    total++;
    data.add(td);
    }//if
    }//if
    }//if
    }//while
    } catch (Exception e) {
    System.out.println("exception");
    return data;
    public void setData(List data)
    this.data=data;
    public UIData getProjectTable() {
    return projectTable;
    public void setProjectTable(UIData ProjectTable) {
    this.projectTable = projectTable;
    public String selectData()
    td=(TData1)projectTable.getRowData();
    return "found";
    jsp page
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <f:view>
    <h:form>
    <h:dataTable value="#{htpg.data}" var="td" binding="#{htpg.projectTable}">
    <h:column>
    <f:facet name="header">
    <h:outputText value="CELL" />
    </f:facet>
    <h:outputText value= "#{td.Cell}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="MADE" />
    </f:facet>
    <h:outputText value= "#{td.Made}" />
    </h:column>
    </h:dataTable>
    </h:form>
    </f:view>
    </body>
    </html>
    getters and setters
    public class TData1 {
    private String Cell;
    private String Made;
    public TData1() {}
    public String getCell() {
    return Cell;
    public void setCell(String Cell) {
    this.Cell = Cell;
    public String getMade() {
    return Made;
    public void setMade(String Made) {
    this.Made = Made;
    faces-config.xml
    <faces-config>
    <managed-bean>
    <managed-bean-name>htpg</managed-bean-name>
    <managed-bean-class>org.Htpg</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    </navigation-rule>
    </faces-config>
    iam trying from so many days.........i have to submit this....so this is very much needed..
    thanks in advance...

  • Vizio 46" won't display from MacBook using miniDisplay to HDMI--used to tho!!!

    That about sums it up. I'm running Lion and about to update to Mountain Lion. I've tried PRAM reset, using disk utility--repairing the permissions and disk, &amp;disk warrior. Random combinations of unplugging HDMI cables and turning off and on the computer have elicited random positive results. It was even working consistently yesterdayuntil I let the computer go to sleep. Now the TV says "No Signal" or "Not Support". Ive repeated the same processes to no avail. iIeven tried SwitchResX after reading these topics.
    I'm convinced its a software issue as the cables currently work with other computers and they used to work fine with the MacBook. There are a bunch of similar topics that have been largely gripe sessions. I'd like to get to a solution. I use the TV for entertainment (duh) but also as an extended area for more real estate when doing music production. I'm in a creative slump, so I'm neurotically trying to fix this.

    I attempted to work with my second Vizio TV in the other room--no dice.  I ****** around with the settings for a while and once got a desktop to appear...and then I tried to make it bigger and the previous setting stopped working.  HELP!

  • Display current day using java code

    I want java code to get current day for the month.Please help me

    anie wrote:
    Sorry,but i did't understand what you are trying to point?????Im trying to point out that there is loads of examples of this to be found on the web(And it can easy be found by using Google(<-- a searchengine)). And it seems to me that the topic starter rather wants someone else to do the searching, or provide example code, rather than doing it him/her self. (S)he is not the first person to want to do this with other words. Im rather sure about it.

  • Problem showing Trademark symbol using ascii code in Flex 3

    I am facing problem in displaying trademark symbol (™) using ascii codes(it is showing square symbol). I have ascii code stored in the database for trademark symbol(ascii code "&#153;" ). So I can't use Hexa code instead of ascii code. But using ascii code I am able to show copyright symbol. Following is the sample code :
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            var trademarkSymbol = "\u2122";
            var trademarkSymbol1 = "&#153;";
            var copyrightSymbol = "\u00A9";
            var copyrightSymbol1 = "&#169;";
        </mx:Script>
        <mx:Label text="Macromedia™"/>
        <mx:Label text="Macromedia{trademarkSymbol}"/>
        <mx:Label text="Macromedia{trademarkSymbol1}"/>      \\ problem  code
        <mx:Label text="Macromedia©"/>
        <mx:Label text="Macromedia{copyrightSymbol}"/>
        <mx:Label text="Macromedia{copyrightSymbol1}"/>
    </mx:Application>
    Please suggest some solution.
    Regards
    Rajat Sahni

    You must use Unicode values, not Windows extended ASCII values.
    The Unicode value of a copyright symbol is hex 00A9 or decimal 169. This happens to be the same as where it is in a Windows' extended ASCII character set, but this is irrelevant. The Unicode value of a copyright symbol is hex 2122 or decimal 8482. In Windows' extended ASCII it has a different value, hex 99 or decimal 153, but again this is irrelevant.
    So the reason you think it "works" for the copyright and not for the trademark is that the two character sets agree on the value of the copyright but disagree on the value of the trademark.
    Moral: Find a good Unicode table.
    Gordon Smith
    Adobe Flex SDK Team

  • How to view file from vss using java Commandline

    Hi To ALL,
    I wanted to view a file from vss through java code.
    By using the folowing code,i could able to get vss file in to local folder.
    Runtime.getRuntime().exec
    ("cmd /c ss Get $/Mywork/Myfile.java -GLC:/New");
    But i wanted to view file from vss using java code.
    any one please help me..
    Thanks in advance.........

    As always, Google is your friend.
    Follow the bouncing link.
    http://www.google.com/search?hl=en&q=VisualSourceSafe+%2B+Java+API
    PS.

  • Targeting iPad 3 retina display from Windows

    Will it be possible to target iPad 3 retina display from Windows using Air 3.3? If not is there an ETA for that? The idea of having to buy/use a Mac to do that is kinda bad.

    Version 10.1.2 Updated on March 19th, 2012
    Does NOT fix this current issue of "Out of memory." for me.
    I am trying to read a 28.17 MB file and have 26.1 GB Available memory space and 28.0 GB Capacity memory space.
    Not sure if Availabe and Capacity memory space on the iPad 3 are related to the issue but I should be able to read this 404 page manual with no problems - but "Out of memory" is preventing me from viewing this document.
    Keep working your magic Adobe! Not there yet.
    Looking forward to another update. :)
    Keep us posted with progress.
    LEXGS3
    Here is the manual link I was referring to - Canon 5D Mark III
    http://gdlp01.c-wss.com/gds/8/0300007348/01/eos5dmkiii-im-c-en.pdf
    Cheers,
    Message was edited by: LEXGS3

  • CONNECT UNIX MACHINE FROM WINDOWS USING C#

    Hi all i have a requirement to connect unix machine from windows using c# code . I have the IP Address of the unix machine and the path too.I have to make a FTP using the c# code from unix to windows and vice versa . Can anybody help me out on this . It
    would be great if have a solution for this .

    Hi
    Balamurali_Mohan,
    Please refer to the similar thread
    How to connect to unix server using c#
    The marked answer said: Use a SSH (secure shell) client wrapper for .NET to connect to the remote UNIX machine and execute commands to run your script.
    Have a look at:
    http://www.codeproject.com/KB/IP/sharpssh.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form.

    Hi 
    Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form?
    The second source has a huge list of company names that can be narrrow by email work. 
    background:SP 2010 and Infopath 2010
    CRISTINA&amp MICROSOFT Forum

    I'm not sure if I understood your question clearly but here is a good resource on how to get attributes from "GetUserProfileByName" web services:
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    Regarding filtering dropdown list then this could be done by applying form on-load rules. 
    Hope this helps

  • I used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire)

    i used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire) i deleted the movie and reinstalled from my icloud backup and it still does the same thing. The actual movie works fine, its just the itunes extras

    Hi there MickeyDresaj,
    You may find the troubleshooting steps in the article below helpful.
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    -Griff W. 

  • Using a PDA to store results data from Compact FP?

    Is it possible to use a PDA as a front end display for a Labview RT application running on a Compact FP system? I also want to write the results data from the Compact FP app to the PDA RAM Drive.
    I am just quoting this system but any details as to whats required to do this would be helpful.
    Thanks in advance for your help!
    B Myers

    Yes it is possible. Compact FieldPoint RT controllers have ethernet and serial ports that could be used to communicate with PDA's. Communication through TCP or serial can be done in LabVIEW RT just as it is done in regular LabVIEW. National Instruments currently does not have any tools for PDA's specifically for this, so you would have to take care of the PDA programming and communication yourself. But to the Compact FieldPoint it would just be talking to a serial or ethernet device.
    Regards,
    JR Andrews
    Application Engineer
    National Instruments

  • How to use result obtained from clientContext.executeQueryAsync

    i have to use result obtained from clientContext.executeQueryAsync for condition in code.But, now i face problem that clientContext.executeQueryAsync result not obtained when needed.

    Hi,
    I suggest you provide more information about your requirement(your code) or error messages for further research.
    If you want to get list items using JavaScript Client Object Model(JSOM), the following articles for your reference:
    How to: Retrieve List Items Using JavaScript
    https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    Working with the ECMAScript Client Object Model (JSOM) in SharePoint 2010–Part 3
    http://blogs.msdn.com/b/sharepointdev/archive/2011/07/19/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-3-nikhil-sachdeva.aspx
    We can also use REST API to achieve it.
    SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • How to set a default date as a parameter in Microsoft Reporting Services 2008 to January 1st

    How can I set a default parameter for date for 01/01/yyyy.

  • [Help] lowering and moving pictures forward in photoshop cs4

    hi, i dont know how to explain this problem very well but, i'd like to know how to move images up and down, and forward into the picture. here is a example. i got 2 images, one of a cat, one of a cat bed. and i want to move the cat, so it's lowered i

  • WRT160NL & Samsung Seies 7 TV wireless connection

    Hi All, I am a newbie so please forgive any basic errors I make! I recently purchased a Samsung Series 7 TV and dongle with the intention of streaming pictures and videos to it wirelessley via my WRT160NL. No success so far! I have reserved IP addres

  • Strange Audio Glitch With Volume Adjust

    When I hit the volume keys on the keyboard to adjust the volume, there is a delay that I do not get when doing the same with my desktop system. There is also an audible click on the audio when the volume is adjusted. If I go to audio preferences and

  • Ipod hard drive issue

    Hi, I have problem with my ipod classic - I bought it in mid of November 2007 in US. Now I'm in Russia and my ipod doesnt work it seems some kind of hard disk drive issue. My question is some kind of warranty provide service in Russia or I have to pa