Regarding small help in update stmt

Hi,
i am updating 47 months data in PL/SQL block.
when i am trying to execute it is getting " invalid relation operator at line 30"
Here i am giving my pl/sql block.can you please find where is the error
DECLARE
Type reco_ref is REF CURSOR;
reco_cur reco_ref;
ac_no master.acct_nbr%type;
m_dt master.mdate%type;
d_rec master.rec%type;
d_damt master.dlamt%type;
dbal master.balamt%type;
v_m_dt VARCHAR2(8);
m_dt1 DATE:=to_date(substr('_20021031',2),'yyyymmdd');
err_cd NUMBER;
err_text VARCHAR2(200);
stmt_str VARCHAR2(4000);
stmt_str1 VARCHAR2(10000);
BEGIN
for v_ctr in 1 .. 47
loop
v_m_dt := to_char(m_dt1, 'YYYYMMDD');
stmt_str:= 'SELECT acct_nbr,mdate,rec,dlamt,balamt FROM master partition (p'||v_mis_dt||') where rec < 0';
open reco_cur for stmt_str;
LOOP
fetch reco_cur into ac_no,m_dt,d_rec,d_damt,dbal;
EXIT WHEN reco_cur%NOTFOUND;
stmt_str1:= 'update master partition (p'||v_m_dt ||') set stage =';
stmt_str1:= stmt_str1 || ' (case when :d_damt>0 and :dbal>0 and (:d_damt/:dbal)<0.2 then ''10%''';
stmt_str1:= stmt_str1 || ' when :d_damt>0 and :dbal>0 and (:d_damt/:dbal)>= 0.2 and (:d_damt/:dbal) < 1 then ''50%''';
stmt_str1:= stmt_str1 || ' when :d_damt>0 and :dbal>0 and (:d_damt/:dbal) =1 then ''100%''';
stmt_str1:= stmt_str1 || ' when nvl(:d_damt,0) =0 and nvl(:dbal,0) =0 then ''100%'' end)';
stmt_str1:= stmt_str1 || ' where acct_nbr=:ac_no and mdate=:m_dt';
execute immediate stmt_str1 using d_damt,dbal,d_damt,dbal,
d_damt,dbal,d_damt,dbal,d_damt,dbal,
d_damt,dbal,d_damt,dbal,
d_damt,dbal,ac_no,m_dt;
END LOOP;
COMMIT;
insert into err values(stmt_str1);
commit;
m_dt1:= add_months(m_dt1, 1);
end loop;
END;
Thanks in advance

Not sure which line no is 30
looks like error with spaces
stmt_str1:= 'update master partition (p'||v_m_dt ||') set stage =';
stmt_str1:= stmt_str1 || ' (case when :d_damt>0 and :dbal>0 and (:d_damt/:dbal)<0.2 then ''10%''';
stmt_str1:= stmt_str1 || ' when :d_damt>0 and :dbal>0 and (:d_damt/:dbal)>= 0.2 and (:d_damt/:dbal) < 1 then ''50%''';
stmt_str1:= stmt_str1 || ' when :d_damt>0 and :dbal>0 and (:d_damt/:dbal) =1 then ''100%''';
stmt_str1:= stmt_str1 || ' when nvl(:d_damt,0) =0 and nvl(:dbal,0) =0 then ''100%'' end)';
stmt_str1:= stmt_str1 || ' where acct_nbr=:ac_no and mdate=:m_dt';
try to put spaces when you concate string, may be it it joining to gether.
Also print stmt_str1 just before execute immediate so you will see any error in the update statement.
If you can not find please post that here with error, so someone can help

Similar Messages

  • Regarding small help

    Hi,
    I have a requirment is basically to piece together a URL string in a message and encode it in the following way.
    You would have a user authentication string that is made up of key/value pairs, for example:
    “date=2007-05-27&userid=ID12345” (string needs to be UTF8 encoded)
    To encode the string these are the steps they want us to follow and we will need to use a shared key: 8uNDf!sVC
    1.     Generate hex MD5 hash of the shared key concatenated with the user authentication string (should = 32 characthers)
    2.     Hex encode user authentication string
    3.     Concatenate result of step 1 with step 2
    Here’s the pseudo code for this:
    userStr = “date=YYYYMMDD&userid=123456”
    sharedKey = “8uNDf!sVC”
    encUser = md5(sharedKey + userStr) + hex(userStr)
    •     Note the “userid” value is the Encrypted Keycode we will be receiving in this import
    below are the two fields to import the data into a table
    a.email
    b.productkeycodeenc
    can you please anybody help me out.
    Thanks in advance

    Hi, I need help to encyrpt the data coming in a table. I have a table like this
    encryptionbatch
    =========
    contains two columns email,list_productkeycodeenc
    email|list_productkeycodeenc
    [email protected]|ppc'dpcb^^aem_qw
    [email protected]|ppc'__cb^^aeptmn
    [email protected]|ppc'''cb^^aenlht
    So based on that i need to encrypt the list_productkeycodeenc and insert into another table like this.
    /* Formatted on 2009/08/20 12:15 (Formatter Plus v4.8.8) */
    DECLARE
    CURSOR stagingtablerecords
    IS
    SELECT *
    FROM encryptionbatch;
    r stagingtablerecords%ROWTYPE;
    u users%ROWTYPE;
    input_string VARCHAR2 (128);
    raw_input RAW (128);
    key_string VARCHAR2 (16) := '8uNDf!sVC';
    raw_key RAW (128) := UTL_RAW.cast_to_raw (key_string);
    encrypted_raw RAW (2048);
    encrypted_string VARCHAR2 (2048);
    Procedure AccountInsert
    PROCEDURE accountinsert (UID IN users.ID%TYPE, keycodevar IN VARCHAR2)
    IS
    BEGIN
    -- Insert a user record
    INSERT INTO encryptiondata
    (userid, list_productkeycodeenc
    VALUES (UID, keycodevar
    END accountinsert;
    Begin main program block
    BEGIN
    FOR r IN stagingtablerecords
    LOOP
    BEGIN
    SELECT *
    INTO u
    FROM users
    WHERE email = r.email;
    input_string :=
    'date='
    || TO_CHAR (SYSDATE, 'YYYYMMDD')
    || '&'
    || 'userid='
    || r.list_productkeycodeenc;
    raw_input := UTL_RAW.cast_to_raw (input_string);
    BEGIN
    DBMS_OBFUSCATION_TOOLKIT.desencrypt
    (input => raw_input,
    KEY => raw_key,
    encrypted_data => encrypted_raw
    DBMS_OUTPUT.put_line ( '> encrypted hex value : '
    || RAWTOHEX (encrypted_raw)
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (SQLERRM);
    END;
    accountinsert (u.ID, RAWTOHEX (encrypted_raw));
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    DBMS_OUTPUT.put_line (SQLERRM);;
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (SQLERRM);
    END;
    END LOOP;
    COMMIT;
    END;
    exit;
    I tried to run this block but am failed due to the error
    ORA-28232: invalid input length for obfuscation toolkit
    can you please anybody help me out on this. client using oracle 9i version.
    thanks in advance

  • Update stmt

    The below update stmt is trying to update the 1960355 records for this condition
    but it taking longer time to update
    Can please help me to fine tune this query
    update temp set code='D2EVXBXBBNN' where code='DDDXZZ23456';

    Hi,
    Shot in the Dark
    try
    create index tmp_idx on temp(code)Then
    begin
      -- Test statements here
        sys.dbms_stats.gather_table_stats(ownname => Owner_name,
                                        tabname => 'TEMP');
    end;and try the update.
    If the above does not help..please paste your explain plan.
    Regards,
    Bhushan

  • Use of Select stmts with Update stmts

    Hi,
    I want to execute the following update stmt...
    UPDATE Test1_tab a
    SET a.invpln_seq_no = (SELECT b.seq_no
    FROM Test2_tab b
    WHERE b.contract_id = a.contract_id
    AND b.date_from = a.period_from_date)
    WHERE a.invpln_seq_no != (SELECT b.seq_no
    FROM Test2_tab b
    WHERE b.contract_id = a.contract_id
    AND b.date_from = a.period_from_date)
    Here the problem is I have used 'SELECT b.seq_no FROM Test2_tab b WHERE b.contract_id = a.contract_id AND b.date_from = a.period_from_date' twice, one in the SET clause and the other one in WHERE clause...But it is the same SELECT stmt...So this same Select stmt runs twice when I run the whole update stmt I guess. Is there a way to do the above update, where it runs the SELECT stmt only once...
    Any input is highly appreciated...
    Thanks And Best Regards,
    /Dinesh...

    Then you can use Merge statement instead.
    try this
    merge into test1_tab t1
    using
    (SELECT a.rowid,b.seq_no SEQ_DEST
    FROM test1_tab a,test2_tab b
    WHERE b.contract_id = a.contract_id
    AND  b.date_from = a.period_from_date
    AND a.invpln_seq_no != b.seq_no) t2
    ON (t1.rowid=t2.rowid)
    WHEN MATCHED THEN
    UPDATE SET t1.invpln_seq_no=t2.seq_destor if you are sure that sno is a unique key with out any duplicates and if you are going to perform one time manual update then you can use an undocumented hint /*+ bypass_ujvc */ to do this.
    *DO NOT include this code if you are about to add it in a production procedure or a function
    UPDATE /*+ bypass_ujvc */ (SELECT a.invpln_seq_no SEQ_SRC,b.seq_no SEQ_DEST FROM test1_tab a,test2_tab  b
    WHERE b.contract_id = a.contract_id
    AND  b.date_from = a.period_from_date
    AND a.invpln_seq_no != b.seq_no)
    SET SEQ_SRC = SEQ_DESTRegards,
    Prazy

  • How can I rewrite this update stmt to improve its poor performance?

    Hi,
    I have the following update stmt that runs for over 6 hours. Here is the SQL and its plan:
                UPDATE TABLE1
                     SET mainveh = 'Y'
                 WHERE (comp#,polnum,a8dtef,a8deef,a8dtac,
                        DECODE(everif,'Y',10000,0)+auunit*100+vrcdsq)
                    IN (SELECT comp#,polnum,a8dtef,a8deef,a8dtac,
                               MAX(DECODE(everif,'Y',10000,0)+auunit*100+vrcdsq)
                          FROM TABLE1
                         GROUP BY comp#,polnum,a8dtef,a8deef,a8dtac);
    PLAN_TABLE_OUTPUT
    | Id  | Operation             | Name     | Rows  | Bytes |TempSpc| Cost (%CPU)|
    |   0 | UPDATE STATEMENT      |          |     1 |   108 |       |   798K  (1)|
    |   1 |  UPDATE               | TABLE1   |       |       |       |            |
    |   2 |   HASH JOIN           |          |     1 |   108 |  1079M|   798K  (1)|
    |   3 |    TABLE ACCESS FULL  | TABLE1   |    21M|   834M|       |   224K  (1)|
    |   4 |    VIEW               | VW_NSO_1 |    21M|  1364M|       |   440K  (1)|
    |   5 |     SORT GROUP BY     |          |    21M|   794M|  2453M|   440K  (1)|
    |   6 |      TABLE ACCESS FULL| TABLE1   |    21M|   794M|       |   224K  (1)|I'm using Oracle 10.2.0.3. The TABLE1 table has 21 million rows. The update stmt will update about 15 million rows. How can I rewrite this update stmt so it'll perform better? There is a primary index on all the columns selected in the subquery. That is the only index on TABLE1.
    Thank you!
    Edited by: user6053424 on Jul 21, 2010 6:59 AM

    Hi,
    Thank you for your suggestions. There is an index on the columns in the group by, it is the PK index on TABLE1. I'm suspecting that due to the amount of data to update, the optimizer decided that full table scan is cheaper than index scan. I'm very interested in the GTT idea, but still need some help if I decide to create a GTT from the subquery, because if I just do this:
    create global temporary table table1_tmp
    on commit preserve rows
    as SELECT comp#,polnum,a8dtef,a8deef,a8dtac,
               MAX(DECODE(everif,'Y',10000,0)+auunit*100+vrcdsq)
          FROM TABLE1
         GROUP BY comp#,polnum,a8dtef,a8deef,a8dtac;then the original update stmt still has the DECODE and such in it, I'm not sure how much benefit that'll do to us:
    UPDATE TABLE1
                     SET mainveh = 'Y'
                 WHERE (comp#,polnum,a8dtef,a8deef,a8dtac,
                        DECODE(everif,'Y',10000,0)+auunit*100+vrcdsq)
                    IN (SELECT comp#,polnum,a8dtef,a8deef,a8dtac,???
                          FROM TABLE1);Your input is greatly appreciated! Thanks!

  • Need small help

    Hi,
    I need small help in sql*loader.I get data-files which has a particular identified on the 1st record( header ), based on which I've to load a constant for the 1st column of every row. How do I set in the control file.
    Appreciate if someone can give me directions on this.
    Thanks in advance,

    Hi again!
    I hope that a little shell script will do the thing for you.
    1.) Create the following BASH-Script
    #!/bin/bash
    export CUSTNO=""
    export CUSTNO=$(awk -F"," '{print NR " " $3}' datafile.csv | grep 1 | cut -d" " -f2)
    sed -i 's/#x#/'$CUSTNO'/g' controlfile.datI've use datafile.csv as the name of the datafile to load and controlfile.dat as the name of your controlfile. Please change this to fit your needs.
    This script looks for the occurrence of your constant value and stores this value in the variable CUSTNO. Then it look for a string #x# in your controlfile and changes #x# to the value of CUSTNO.
    So in your controlfile there should be a line for custno like that:
    custno                     CONSTANT '#x#'This line will be replace in your example to:
    custno                     CONSTANT '35642'To get this to work I assume that:
    1.) Your constant value is always at the third position in the header of your datafile.
    2.) You've made the change with #x# in your controlfile.
    I hope that this is really usefull to you.
    Best Regards
    Florian W.

  • Regarding function module in update task

    Hi,
    I have a function module(Zxxx) which is update type. i have called the fun.module in my program (Zyyy) using the syntax CALL FUNCTION ZXXX IN UPDATE TASK. As I suppose to debug the function module, I activated the update debugging in the debugging screen. But the controll still not goen into the function module. Please let me know solution.
    Thanks & regards,
    Suresh

    >
    sureshkumar vaniyasekar wrote:
    > I activated the update debugging in the debugging screen. But the controll still not goen into the function module.
    Hello Suresh,
    What do you mean by not going?
    If you are trying to do an F5 at the function call, the debugger is not "enter" into the FM. This is because at this point the function call is registered but the FM is not executed.
    Update FM calls registered in a particular LUW are executed(in a special "UPD" workprocess) when there is a COMMIT encountered(may be explicit or implicit).
    Did you read the online help on [Update Debugging|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/c6/617d0ce68c11d2b2ab080009b43351/content.htm] & [Breakpoint behaviour during Update Debugging|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm]?
    BR,
    Suhas

  • Need a help on Update statement

    Hi All,
    I Need a help in updating a table column. PFB my requirement.
    Table1
    ItemID OrgId       Date
    1       82     12/sep/2012   
    2       82     25/oct/2012
    3       82     17/Nov/2012
    4     82     22/Jan/2013
    5     82     26/sep/2012
    Table2
    Itemid     orgid       Date1
    1      82     23/sep/2012      
    2      82     25/Dec/2012
    3      82     17/Sep/2012
    4      82     22/Feb/2013
    5      82     26/Oct/2012
    Table3
    Itemid     orgid       Date3
    1      82     10/sep/2012      
    7      82     30/Dec/2012
    3      82     12/Sep/2012
    10      82     27/Feb/2013
    5      82     29/Oct/2012
    I Need to Update Date column of Table1 With Date3 of table3
    If
    Item and org combination is present in table3 and date column of table1 is less than Date3 of table3
    Else
    I need to Update with date2 of table2.Can we acheive this in a single update statement, can any one help me on this.
    Thanks and regards,
    Rakesh
    Edited by: Venkat Rakesh on Sep 27, 2012 11:04 PM

    You can probably also use MERGE:
    --DROP TABLE table1;
    --DROP TABLE table2;
    --DROP TABLE table3;
    ALTER SESSION SET nls_language = 'AMERICAN';
    CREATE TABLE table1
       itemid    CHAR (1),
       orgid     CHAR (2),
       thedate   DATE
    INSERT INTO table1   SELECT '1', '82', TO_DATE ('10/sep/2011', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table1   SELECT '2', '82', TO_DATE ('10/oct/2011', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table1   SELECT '3', '82', TO_DATE ('10/nov/2011', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table1   SELECT '4', '82', TO_DATE ('10/jan/2011', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table1   SELECT '5', '82', TO_DATE ('10/sep/2011', 'dd/mon/yyyy') FROM DUAL;-- won't be updated
    CREATE TABLE table2
       itemid    CHAR (1),
       orgid     CHAR (2),
       thedate   DATE
    INSERT INTO table2   SELECT '1', '82', TO_DATE ('01/sep/2012', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table2   SELECT '2', '82', TO_DATE ('01/dec/2012', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table2   SELECT '3', '82', TO_DATE ('01/sep/2012', 'dd/mon/yyyy') FROM DUAL;
    INSERT INTO table2   SELECT '4', '82', TO_DATE ('01/feb/2012', 'dd/mon/yyyy') FROM DUAL;
    CREATE TABLE table3
       itemid    CHAR (1),
       orgid     CHAR (2),
       thedate   DATE
    INSERT INTO table3   SELECT '2', '82', TO_DATE ('30/dec/2009', 'dd/mon/yyyy') FROM DUAL; -- date less than table1, so picks from table2
    INSERT INTO table3   SELECT '4', '82', TO_DATE ('30/mar/2013', 'dd/mon/yyyy') FROM DUAL; -- larger than table1 , so pick this date
    -- table1 original data
    SELECT * FROM table1;
    -- merge new data
    MERGE INTO table1
         USING (SELECT NVL (t1.itemid, t2.itemid) itemid,
                       NVL (t1.orgid, t2.orgid) orgid,
                       t2.thedate prefdate ,
                       t1.thedate nextdate
                  FROM    table2 t1
                       FULL OUTER JOIN
                          table3 t2
                       ON t1.itemid = t2.itemid AND t1.orgid = t2.orgid) dat
            ON (dat.itemid = table1.itemid AND dat.orgid = table1.orgid)
    WHEN MATCHED
    THEN
       UPDATE SET table1.thedate = (case when prefdate > table1.thedate then prefdate else nextdate end) ;
    --table1 updated data
    SELECT * FROM table1;OUTPUT:
    Session altered.
    Table created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Table created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Table created.
    1 row created.
    1 row created.
    ITEMID ORGID THEDATE  
    1      82    10.09.2011
    2      82    10.10.2011
    3      82    10.11.2011
    4      82    10.01.2011
    5      82    10.09.2011
    5 rows selected.
    4 rows merged.
    ITEMID ORGID THEDATE  
    1      82    01.09.2012
    2      82    01.12.2012
    3      82    01.09.2012
    4      82    30.03.2013
    5      82    10.09.2011
    5 rows selected.

  • Combine update stmts with different columns and criteria

    Hi All,
    I have the following 3 update stmts that update the same table. The table DSVEHS has 45 million rows. The table PPDSDETL has 95 million rows. How to combine them? I'd like to reduce the times to scan those tables. There is a primary key on PPDSDETL for dipoln, direnn, diseqn, didscd and another column not in the query.
    Please give me some suggestions. Thank you in advance.
    UPDATE DSVEHS
    SET accfgn_sur = 'Y'
    WHERE EXISTS (SELECT 'X' FROM PPDSDETL
    WHERE polnum = dipoln
    AND polren = direnn
    AND polseq = diseqn
    AND UPPER (TRIM (didscd)) = 'ACCFGN');
    update DSVEHS
    set mviofg_sur = 'Y'
    where exists (select 'X' from PPDSDETL
    where POLNUM=DIPOLN
    and POLREN =DIRENN
    and POLSEQ =DISEQN
    and upper(trim(DIDSCD)) ='MVIOFG' ) ;
    update DSVEHS
    set accfre_dsc= 'Y'
    where exists (select 'X' from PPDSDETL
    where POLNUM=DIPOLN
    and POLREN =DIRENN
    and POLSEQ =DISEQN
    and upper(trim(DIDSCD)) ='ACCFRE' ) ;

    Hi,
    user13081819 wrote:
    Hi Frank:
    Here is a set of sample result:
    POLNUM POLREN POLSEQ VEHNUM DRVNUM TRANSD MULTIC PRODUC HOMEOW NONOWN RENEWA DRIVER OT ACCFGN_SUR MVIOFG_SUR ACCFRE_DSC
    1111111 0 1 2 0 mmmmmm xxxxxx Y N Y
    2222222 0 3 1 0 Y N Y
    ...This site normally won't print multiple spaces in a row.
    Whenever you post formatted text, like your results, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    The table structures are:
    DSVEHS
    Name Null? Type
    POLNUM NOT NULL NUMBER(9)
    POLREN NOT NULL NUMBER(2)
    POLSEQ NOT NULL NUMBER(2)
    ...Post CREATE TABLE statements instead.
    Please let me know if you need more information.Besides the things mentioned above, post INSERT statements for the sample data that produces the given results.
    Did you say which version of Oracle you're using?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to setup air help auto-update

    RH8 HTML.
    Im fiddling around with the AIR Help file and trying to get the auto update working.
    So far I have the comments syncing perfectly across users with a shared folder on our network.
    I'm now publishing the air file to a shared folder again where everyone can get the  file and where the update.xml file is sitting.
    so I have this looking structure.
    \\networkdrive\Adobe_AIR\Generic_AIR\AdobeAIRApplication\Help File.air
    \\networkdrive\Adobe_AIR\Generic_AIR\AdobeAIRApplication\Help_Update.xml
    I set everything in RH Air output to publish to these folders, and I can see the newest files each time I do, I change the version numbers from 1.28 to 1.29, and this is reflected in the update.xml file where the version number has changed.
    but when I go into the actual instaleld 1.28 version and use the Check Now feature to look for the latest 1.29 which has over written the 1.28 files in the shared folder, it finds nothing.
    I cant find any way to manually point to where the update should be found.....do the update files have to sit in the same install directory or something? How does this work....aarrrgghhh
    Is there another things I'm not doing?
    Thanks.

    Hi Nick
    Good to hear that you are looking into AIR and Comment syncing is working fine.
    Regarding the AIR auto update feature, you need to do the following
    While generating the AIR file, you need to specify the update XML file location in AIR Help SSL generation option shown in the image below.
    Now install this AIR file, and update the update.xml file and new version of AIR file, and it should work fine.
    So the point is the installed air file need to know where to look for the update.xml file, it can be shared folder or a website.
    Hope this will help you.
    -Praful

  • Need help for Update and cancel SalesOrder

    Hi All,
    I  written java code for create sales order based on salesquotation,now i want to update and cancel sales order ,i need help to update and cancel salesorder.
    can give any related links for update and cancel salesorder.
    Thanks and Regards,
    Srinivas

    Hi srinivas.L
    It is simple, here is some sample code. You must use getbykey to get the document. Then once you got it you can make whatever changes you need. Then update it. where i have oOrder.Update() you can have oOrder.cancel
    Dim oOrder As SAPbobsCOM.Documents
            oOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            If oOrder.GetByKey(530) Then
                oOrder.Lines.SetCurrentLine(1)
                oOrder.Lines.WarehouseCode = "01"
                If oOrder.Update() <> 0 Then
                    MsgBox(oCompany.GetLastErrorDescription)
                End If
            Else
                MsgBox("Nothing found")
            End If
    Hope this helps

  • Help need small help

    ferst this is my pc
    4.09.00.0904 (DirectX 9.0c) ante-HA0X2NT8F0  : CPU الـ Intel Pentium 4 530, 3033 MHz (15 x 202) MSI 848P Neo-V (MS-6788) (5 PCI, 1 AGP, 2 DDR DIMM, Audio)  Intel Breeds Hill i848P ram512 mb(DDR SDRAM) BIOS نوع الـ AMI (11/29/04) Communications Port (COM1) ECP Printer Port (LPT1) RADEON 9250 - Secondary (128 mb) RADEON 9250 (128 mb) ATI Radeon 9250 (RV280) Plug and Play Monitor [NoDB] (105169121) : sound cart Intel 82801EB ICH5 - AC'97 Audio Controller
     : IDE  Standard Dual Channel PCI IDE Controller Floppy disk drive HDS728080PLAT20 (قب 80, 7200 RPM, Ultra-ATA/133)   CD-ROM Drive SMART
    now
    1-my pc restart it self after 4 or 5 h....
    no cbu hot
    no fan error cut i test all
    2-i wanna get update all driver
    i try with the msi brogram and that brogram give me an old v. :((
    3-is my pc (top)(good)(strong) if not i will buy new msi one only tell me
    waiting

    when take look thare i see 12v_____
    euer-power tx 12v
    pl-350 8a 5a max 200w (isthat good )?
    hi Din
    let me ask how i can do this ?(memtest )????
    pls i wanna small help and i wanna know >is my pc good or bad cuz it cust me mush
    and all my pc from MSI !.
    HI Ralphdb
    (((Do you know what temp your Cpu is running)))) no i dont know that i am not professional  in pc hard..so pls be soft with me and explain  ...

  • HT4623 please help me update ios 4.3 in iphone 3g

    please help me update ios 4.3 in iphone 3g

    You can't. The iPhone 3G can only go as high as iOS 4.2.1. It hardware does not suport a higher iOS.
    BW this is the iPod touch forum.

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • Need help in UPDATE data in SQL Query

    Hi all,
    I am trying to update data in the sql table as per below screenshot but couldn't able to do it. Can anyone help to update the data as I mention in screenshot.Appreciate you help.Thanks.
    Yellow highlighted columns are source
    Green highlighted columns are target
    Colored data should be update as per source data in sql table.Data is not static as it might have more rows to update and query should be bit dynamic.
    Maruthi...

    You have already asked this question once. You did not get any good answers, because you the information you gave was insufficient. And I'm afraid that the information is still in sufficient.
    Or more exactly, from the example you have given, the answer is: can't be done. And the reason it can't be done, is as I explained in response to you first thread: there is no information in the data to from which we can deduce that Clorox Company
    should be under "Week 1-1,K.B,F". The fact that rows are listed in a certain order in the screenshoot is of no importance, because a table is an unordered object.
    But you said in another post that you have a timestamp column. Maybe that column is usable - maybe it is not. But at least it is a key that you have more columns that the ones you show.
    The best way to get help with this type of problems is to post:
    1) CREATE TABLE statement for your table(s).
    2) INSERT statements with sample data.
    3) The desired result given the sample.
    4) A short description of the actual buisness problem you are trying to solve.
    5) Which version of SQL Server you are using.
    This makes it easy to copy and paste into a query window to develop a tested solution. Screenshots with an insufficient amount of data is not going to help you very much.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for