OraDynaSet not returning the correct number of records.

Hello everyone, I write the VB code in Excel 2007 and recovery of Oracle 9i data records. When I launch my application of TOAD or any other sql application I get 56 records returned for some queries. However, when I do from VB in excel and write the values to the excel file, it is not the 3 latest reviews, suggestions? Here's the part of my code:

Worksheets ("Report"). Range ("a3"). Value = «»
Worksheets ("Report"). Range ("B3"). Value = 'period '.
Worksheets ("Report"). Range ("C3"). Value = 'Budget '.
Worksheets ("Report"). Range ("D3"). Value = "projected."

strSQL = "select GroupName, period_name, budget_value, budget_value nlas_bdgt_loading_stg project where to plant =" & plant & "and group_number = 1 order by group_number, period_num.

Set OraDynaSet = objDataBase.DBCreateDynaset (strSQL, 0 &)

If OraDynaSet.RecordCount > 0 Then

OraDynaSet.MoveFirst
"The recordset for the rows returned in a loop
For i = 4-OraDynaSet.RecordCount
' Put the results in columns
ActiveSheet.Cells (i, 1) = OraDynaSet.Fields (0). Value
ActiveSheet.Cells (i, 2) = OraDynaSet.Fields (1). Value
ActiveSheet.Cells (i, 3) is OraDynaSet.Fields (2). Value
ActiveSheet.Cells (i, 4) = OraDynaSet.Fields (3). Value
OraDynaSet.MoveNext
Next I
End If

Thank you
Chris

Hello.

For i = 4-OraDynaSet.RecordCount

I believe that you start on the fourth record...

Octavio

Tags: Oracle

Similar Questions

  • Call.phoneNumber () does not return the phone number

    I try to use the new method Call.phoneNumber () which was introduced in 10.3:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__system__phone__call.html?f=call#FUNCT...

    Even if I added the permission of read_phonecall_details according to the documentation, I'm still not received the phone number of outgoing calls placed on the device. The call to Call.phoneNumber () returns an empty string.

    I use the Simulator to 10.3 (10.3.0.698) with Momentics 2.1 and placing me calls using the controller.

    Someone managed to get the phone number? Any ideas on how to make this work would be appreciated.

    It is a known problem in the Simulator, but works fine on a real device.  The bug appeared in Issue Tracker here: Call.phoneNumber () always returns a null in the Simulator

  • In a table not displaying the correct number of lines

    I have Apex 3.2.0.00.27. I have a tabular presentation over a simple table (update only). I'm trying to get the page to display more than 15 lines at a time. I think it does default to 10 when I created the page. I put "Number of Rows" to 100 in the report attributes, but only 15 lines are evidence. I played with all the parameters of paging and looked around at the other definition of report/region settings and can't seem to find out why he is not respect the value I set "Number of Rows".

    I had this same problem in point 2.2, as well and upgraded to 3.2 in the hope that he could have a bug (we do not have something superior to currently available in our dev environment 3.2).

    Is this a known limitation (I don't see it documented anywhere, but maybe I forgot) or I do something wrong? Is it possible that I can get a tabular presentation on top of the table, showing more lines?

    Thank you

    Hello

    "Number of Rows" value of 100 and check that you have nothing on 'Number of lines (element)' or 'number of maximum rows.
    Request disconnection then disconnecting from the constructor of the Apex.
    Back of connection and your form should show more lines

    Kind regards
    Jari

  • Function does not return the correct value

    Hi, I'm having a strange problem and hope someone knows how to solve this problem...

    I try to send a string to a function in another class and do return to a textfield, so I can add it to a movieclip and on the stage. I use it for several buttons. The problem is when I put that a string in it value returns a string for the previous call to the function that is not the string value that I want to use. Here's the function:

    public void replaceMCTxt (mcString:String, xPos:Number,

    yPos:Number, rolloverText:Boolean, newFontSize:uint, height: uint, width: uint = false): {TextField

    var newMCTxt:TextField = new TextField();

    newMCTxt.x = xPos;

    newMCTxt.y = yPos;

    newMCTxt.width = width;

    newMCTxt.height = Height;

    var textFormat:TextFormat = new TextFormat();

    textFormat.align = _gameModel.screenFontAlign;

    textFormat.size = newFontSize;

    textFormat.font = _gameModel.screenFont;

    textFormat.color = _gameModel.screenFontColor;

    newMCTxt.defaultTextFormat = textFormat;

    newMCTxt.text = _languageClass.getTranslation (mcString);

    newMCTxt.selectable = false;

    Return newMCTxt;

    }

    I try to call with this statement in another class:

    _moreGamesTxtField = _updateLanguageClass.

    ("MORE GAMES", _gameModel.moreGamesTxtXPos, replaceMCTxt

    _gameModel.moreGamesTxtYPos, _gameModel.moreGamesTxtWidth,

    (_gameModel.moreGamesTxtHeight, _gameModel.moreGamesTxtFontSize);

    Instead of giving me a movieclip "MORE GAMES", it gives me a 'PLAY' movieclip, which is what the previous call to the function used. I also had a similar problem in another function where he did the same thing with filtering of different buttons, so I think the problem is in the service, but I'm not programmer to know that it's good enough. If anyone has an idea please let me know. Thank you...

    Start the survey using the trace() function to see what value is passed to and returned by some _languageClass.getTranslation ().

  • CF do not return the correct results

    I have a column that has positive and negative numbers and I'm trying to separate these numbers in a separate column for each. "My code below works if each barcode has both a positive and negative number to compare, but mistakes lifted as"cannot convert"numerical value" if I just all the positive numbers in the colum. Which, in some casees, I get because I import a CSV file. Can someone help with the code? -Thank you.

    <! - SUM POSITVE AMOUNT - >
    < cfquery name = "SumPositiveTemp" datasource = "inventory" >
    SELECT the barcode, Sum (Quantity) as quantitysumPositive
    TEMP
    WHERE quantity > 0
    GROUP BY barcode
    < / cfquery >

    <!--> SUM QUANTITY NEGATIVE
    < cfquery name = "SumNegativeTemp" datasource = "inventory" >
    SELECT the barcode, Sum (Quantity) as quantitysumNegative
    TEMP
    WHERE quantity < 0
    GROUP BY barcode
    < / cfquery >

    <!-SUBTRACT QUANTITY ISSUED LESS QUANTITY RECEIVED IN QUANTITY SOLD-> GET
    < cfset QuanitySold = ' #SumPositiveTemp.quantitysumPositve - SumNegativeTempquantitysumNegative #' >

    <! - INSERT POSITVIE/NEGATIVE NUMBERS INTO TABLE - >
    < cfoutput query = "SumPositiveTemp" >
    < cfquery name = "InsertPositiveIntoCart" datasource = "inventory" >
    INSERT INTO Cart1 (barcode, QuantityOut, QuantityIn, QuantitySold)
    VALUES (#SumPositiveTemp.barcode #, #SumPositiveTemp.quantitysumPositive #, #SumNegativeTemp.quantitysumNegative #, #QuantitySold #)
    < / cfquery >
    < / cfoutput >

    Yes, I found that if the barcode was not POS and NEG numbers it returns a null value. After more research, I found that was the solution to avoid a null value and use in this situation.

  • Adobe Acrobat 8 Professional does not have the correct serial number after reinstalling

    Adobe Acrobat 8 Professional does not have the correct serial number after resettlement, what to do?

    Open one of the other products first (like PhotoShop and make sure that they are turned on.) Leave it open and launch Acrobat. You may need to reactivate Acrobat can. There is a difference that CS and CC seem to use requiring a such a step with Acrobat. For more information, you can ask in the CC forum because the installation is a little different from the standalone Acrobat.

  • The illustration is not the correct number of operands...

    I work on a Macbook Pro 10.8.5. When I open a file GOT CC and place any number of images, save and close the file. When I reopen it the file, I get this message. "Cannot open the illustration. The illustration is not the correct number of operands of an operator... etc."analysis of file is always open after that but all placed images disappear.

    I've tested placement formats IE. Jpg, TIF, png, PSD etc put flat. They are all come with the same error.

    I searched in Google and I have not yet found a solution. There was a suggestion to import the HAVE in INDD, it does not help beause copy all converts text outlines and incorporates images.

    Can anyone help?

    You can try this

    http://daxxter.WordPress.com/2009/04/16/how-to-recover-a-corrupted-Illustrator-AI-file/

    I have a feeling that this is a problem with the depth of the path of the file. Too many characters in the path. You normally have this depth?

  • Rules are configured to my e-mail go to a certain folder, but it is not in the correct folder.

    original title: send rules

    I know exactly how to set up the rules for my email destinations.  Why will they not in the correct folders?

    I come back and check again until the last letter/number shipper address, etc... and they're always in the
    bad record.
    I use Windows Mail.  I can't find any option as shown above.

    This is a screenshot of Vista's Windows Mail message rules. Look in box 2.

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • Windows Media Center EPG does not have the correct data

    Windows Media Center EPG on my computer is so ugly!

    Description is separated in two, and it's always the last part that displays first, so you'll have to roll down to the bottom to read the description.

    The series is difficult to use, because the series 1) is not always marked as series (so you can select 'plain' Record), and 2) the title contains often series of numbering (e.g. "the bodyguards (1:6)"), so even if it is marked as a series, it will record ever "Guards body (2:6)" or other titles (the Media Center will just try to record any episode of "Bodyguards (1:6)").

    It is the broadcaster who create * data, and then displays in Media Center via Broadcasting Dataservices Ltd., or who are the last to blame?

    What is MS Media Center that does not have the correct data?

    I am in Denmark, if this has an impact on the response.

    Thank you and best regards!

    Hello

    Thank you for your response. I appreciate your time.

    I suggest you to post your query on our MSDN Forums, as this issue should be better there.

    Please refer to the reference to the link below to send your request:

    http://social.msdn.Microsoft.com/forums/en-us/home

    Hope this information helps.

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • GetDeviceCaps does not give the correct pixel factor in windows 7.

    GetDeviceCaps does not give the correct pixel factor in windows 7, if I use 96 dpi settings means it gives the pixel as 1 factor and if I user the 120 dpi settings means that he must give the factor 1.25 pixel, in windows xp, I had good factor with GetDeviceCaps but in window7, it returns 1 instead of 1.25 pixel factor can someone help me with this problem

    ScreenDPI.x = GetDeviceCaps (ScreenDC, LOGPIXELSX);
    float PixelX = (float) ScreenDPI.x/96;

    Hello

    I would like you to post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en-us/w7itproui/threads

    I hope this helps.

  • Unable to get the total number of records processed by the processor of trade rules

    Details of the environment

    ======================

    Disqualification Version: 12.1.3.0.0


    I use a business rules processor to implement multiple business rules on one record and I am looking for a summary of the number of records increased and does not have a specific rule.


    To illustrate:
    Suppose there are 2 rules, invalid number in Column1 and valid number on Column2.
    10 records to process and 3 folders don't rule 1 (valid on column1) and 9 entered failure of rule 2 (valid number on Column2).

    In the browser of result of the processor Business, the number of past records and failed is displayed but is not part of the output of the processor itself. In the example above, there will be 1 pass and 9 fail records and given the values of said the total number of records can be derived which is 10.

    This is why the expected output will be:
    Success of failure
    Rule 1:7 (10-3) 3
    Rule 2: 1 (10-1) 9
    Note: The number of records that failed can be derived from the table of the rule ID but I don't know how to get the total number of records in order to calculate the number of records that a given rule.

    I tried to publish the County of acceptance and rejection in the browser of result of the processor Business in an intermediate table and ask the same intermediate table to get the pass and fail values but Disqualification does not allow to write and read the same intermediary object in a single process. What is the best way to get the number of records total handled by the processor business rules? This kind of attributes (that do not exist only in the browser of result) can be included in the output of the processor in the next version of the Disqualification?

    In addition, the intermediate table contains only 1 sheet with pass and failure values while the exceptions which have individual failure on each rule contains 12 Archives. What would be the best approach to merge a single record into multiple records according to the example below?

    Staging table
    Success of failure
    1 9

    Exception table
    Single ID ID rule
    Rule 1 Record1
    Rule 1 Record2
    Rule 1 record Record3
    Rule 2 Record1

    Exception table with: staging Table data merge
    Rule ID ID Unique Pass Fail Total
    Rule 1 1 9 10 Record1
    Rule 1 1 9 10 Record2
    Recording rule 1 Record3 1 9 10
    Record1 rule 2 1 9 10

    Please notify.

    Hi Jason,

    The best way to explain how to do this is with an example project (DXI). I'll send you one in offline mode.

    -Mike

  • I have a CS3 design standard and it will not put the serial number

    I have CS3 Design Standard. Yes, I realize his old v, but it does the job for me at the moment, until I get a nice new mac. My iMac bought at the same time as CS3 is dead and I'm on a mini temporary mac with OS X 10.6.8 until I get a new iMac.

    I dragged and removed illustrator of my disk backup that works OK. It says that I can't save when it starts, but I'm managing to work OK on until now.

    The need to use Photoshop and I have tried to install it from the original disc and does not accept the serial number, I just get a big red x.

    I tried to drag and drop the application again from my backup disk but it still does not accept the serial number.

    Any help or advice greatly appreciated.

    There is nothing to enter because your license system is not functional. Reinstall the software correctly using the installer of the full suite, not some installers obscure single app or what you mean by "backup."

    Download the CS3 products

    Mylenium

  • I forgot my password for apple and have permission to stage the 2 and broken my old phone and do not have the same number of what I can do my account is already waiting to be reset, but it takes apple long to to deal with the what else is there to do?

    I forgot my password for apple and have permission to stage the 2 and broken my old phone and do not have the same number of what I can do my account is already waiting to be reset, but it takes apple long to to deal with the what else is there to do?

    You know the e-mail password what do you use? I lost over $ 30 on my old Apple ID because I couldn't get into the email and apple would not transfer my money to my new account.

Maybe you are looking for

  • How to reinstall a Note on Eqiuum A100-147

    Do I have reason to think to reinstall OneNote, you must completely restore the system Core working on Toshiba Eqiuum A100-147? It's a terrible Setup if that's the case!

  • After the system is booted, the logon process takes 20-30 minutes.

    Microsoft Windows Vista Business SP2 [Version 6.0.6002] / ThinkPad x 301 2776 - A23The problem was discovered in November-December 2013.After the system is booted, the logon process takes 20-30 minutes (the mouse cursor on the black screen).I faced t

  • WAG160N - cannot update firmware de.09

    I downloaded the updated firmware (A Anex).15 but no matter what I try, I can't firmware to stick. (1) I tried the Firmware Upgrade option via the HTML interface to the router. I select the file (WAG160Nv1-EU-ANNEXA-ETSI-1.00.15-code.img) and click o

  • problems with %APPDATA%\microsoft\windows\sendto when installing quicktime

    When installing quicktime or itunes 10 receive message "could not access network location % appdata%\. "have tried all itunes advice and tried to run as an administrator out of office

  • Older versions

    I have the following associated Adobe Premiere files on my PC.  They are indeed installed.  Can I unstall/remove older versions or are they necessary for the proper functioning of the latest versions?  I want to erase the disk space hard if older are