User Profile

Collapse

Profile Sidebar

Collapse
harshakusam
harshakusam
Last Activity: Aug 20 '09, 02:18 PM
Joined: Apr 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • harshakusam
    replied to Previous date in UNIX
    This is how you get previous date.. :---)

    newprd$ echo `date`
    Tuesday, 7 July 2009 15:30:19 BST
    newprd$ echo `TZ=CST+24 date +%d/%m/%y`
    06/07/09
    See more | Go to post

    Leave a comment:


  • Python Connecting to ORACLE problem*** Help me plsss

    Hi All,

    In my python script i use to run some oracle queries for this i require a library to connect to oracle which is cx_Oracle.

    When we were using 9i(oracle).. my script was running fine.. and now when we migrated to 10 G its giving problem...

    Few lines of my script

    Code:
    import sys
    import cx_Oracle
    from datetime import date, timedelta
    import mail
    import time
    ...
    See more | Go to post

  • harshakusam
    started a topic Previous date in UNIX

    Previous date in UNIX

    Hi All,

    Could someone pls let me know how to get preiousday for the current date.

    Y i require this because i my script runs it will genate reports and sent them via mail, and in subject to include date.

    And the problem is when these reports failed if we run these reports next day the subect line will current day actually we are ruuning reports for previous day.

    Could some one pls help me...
    See more | Go to post

  • harshakusam
    replied to Get values in Combo Box ...
    Hi Chipr,

    How to get
    Code:
      SELECT Name FROM MSysObjects WHERE Type=5
    values into combo box ?

    and then if user selects one in that the same value is to assaigned to ABC below

    Code:
      
    DoCmd.OutputTo acOutputQuery, [B]ABC[/B], acFormatXLS, "" & fullpath & "\" &[B] ABC[/B] & ".xls"
    See more | Go to post

    Leave a comment:


  • harshakusam
    started a topic Hide VB code in FORM ...

    Hide VB code in FORM ...

    Hi,

    I designed a form and there is some VB code behid this.

    When some one uses this FORM they can open this form in design view and also they can do some code changes .. so i dont want to allow .. is there any possibility to do this.

    Cheers,
    Harsha
    See more | Go to post

  • harshakusam
    started a topic Get values in Combo Box ...

    Get values in Combo Box ...

    Hi All,

    I have a combo box and a command button

    In combo box i have to show values which i get frombelow query

    Code:
    SELECT Name FROM MSysObjects WHERE Type=5
    if user select one and the same value is to be assigned to below code(bold)
    Code:
    DoCmd.OutputTo acOutputQuery, [B]rs!Name[/B], acFormatXLS, "" & fullpath & "\" & [B]rs!Name[/B] & ".xls"
    ...
    See more | Go to post

  • harshakusam
    started a topic Vbform

    Vbform

    Hi All,

    I Created a form and now i want to add a command button and a text box
    and then when user clicks on command button browse window should open and users can select the path and seleted path should be shown in text box.

    Cheer's
    Harsha
    See more | Go to post

  • harshakusam
    replied to MKDIR In VB ??
    Thanks ADeZii,

    It worked

    Thanks a lot....
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to Access Update & Loop
    Sorry to all Problem is now resolved.. Thanks to all
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to How to loop & substitute ???
    Hi Megalog,

    Thanks a lot it works.. finally my work finished with this...

    Thanks thanks....
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to Access Data to CSV file
    This method will help you...

    Code:
    The TransferText method has the following syntax and options:
    
    DoCmd.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName, CodePage)

    This will work...

    Code:
    Dim strSQL As String
    strSQL = "Your select statement"
    DoCmd.TransferText ExportDelim, "strSQL",
    ...
    See more | Go to post

    Leave a comment:


  • harshakusam
    started a topic MKDIR In VB ??

    MKDIR In VB ??

    Hi All,

    When i run below code It's not creating folder.... In can see it in msgbox prompt it showing correctly .. Could you pls help me where iam wrong....

    Code:
     
    Dim str As String
    ftp_Date = Format(Date, "yyyymmdd")
    str = "D:\Daily FXPCA Trade Report\" & ftp_Date
    MsgBox str
    MkDir str
    See more | Go to post

  • harshakusam
    started a topic How to loop & substitute ???

    How to loop & substitute ???

    Hi All,

    Code:
     
    SELECT MSysObjects.Name 
    FROM MSysObjects 
    WHERE (((MSysObjects.Type)=5));
    From above sql i will get list of queries in my MDB file

    Assume Output of above query is
    abc
    xyz
    lmn

    I have to SUBSTITUE the above values 1 by one in below AND LOOP THEM TILL LAST??

    Code:
     
    DoCmd.OutputTo acOutputQuery, "??",acFormatXLS,
    ...
    See more | Go to post

  • Hi All,

    I Got IT ......
    Code:
    Public Const strConnect = "Set your connection string here"
    
    Function SetConnections()
    
    MsgBox strConnect
    
    For Each QueryDef In CurrentDb.QueryDefs
    If QueryDef.Connect <> "" Then
    QueryDef.Connect = "ODBC;" & strConnect
    End If
    Next
    
    End Function
    ...
    See more | Go to post

    Leave a comment:


  • Reset connection properties for all pass thru queries ?/?

    Hi All,

    Can some pls tell me the syntax that to placed in below _____

    When i set ODBC connect strg properties by query properties it something looks like....

    Code:
     
    
    ODBC;DRIVER={Oracle ODBC Driver for Rdb};SERVER=XXX.COM@FXDB@11111@W;UID=hars;PWD=password;SVR=XXX.COM;CLS=FXDB;
    DATABASE=ATTACH 'FILENAME ABC_DB';XPT=2;CSO=1;DBA=W;DSO=0;TLL=;TLO=0;
    Code:
     Public Const
    ...
    See more | Go to post

  • harshakusam
    started a topic Access Update & Loop

    Access Update & Loop

    1)
    Is there any way to update the data in this table(MSysQueri es). I have a bunch of passthrough queries where I need to update the ODBC connection.Inst ead of updating the properties in each query individually, is there any way to do an update to that data in the MSysQueries table.

    I need to update NAME1 Column

    Code:
    SELECT MSysQueries.Name1
    FROM MSysQueries
    WHERE (((MSysQueries.Attribute)=1));
    ...
    See more | Go to post

  • harshakusam
    replied to Access Query Problem.
    Hi Neo,

    I have to use same query In VB and run thru code.. but its giving me error...

    DoCmd.RunSQL passes SQL statement to Access database engine ... here comes my problem... When i run same query from editor i think it is passing to database i think..

    So how i can run my query from VB ???
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to Access Query Problem.
    Hi Fish,

    Yes all my queries runs fine when i run in query editor as passthrough query ...
    Y its not running is because access does't understand keyword's like case,Substr .. etc... . Iam i right fish ?

    Neo,

    I will connect to my database using Oracle ODBC Driver for RDB.
    All my tables are linked... Only problem is access not understanding my sql Y because my sql contains case, substrt which...
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to Access Query Problem.
    Hi Fish,,

    Iam getting sytax error because my select stament contains keywords like case, substr etc... . I can run normal select statement with out any issue.

    Can you pls expain how to do this plsss.....
    See more | Go to post

    Leave a comment:


  • harshakusam
    replied to Access Query Problem.
    Hi Fish,

    I wanna run above query which i mentioned "MIS_Query" .. Could you pls help me ...

    Iam getting syntax error when i run this.. i know this is because of access doen's understand case. substr and so....

    Can you pls help me in resolving this pls...


    It would be great great great helpful for mee....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...