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
User Profile
Collapse
-
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
-
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... -
Hi Chipr,
How to getvalues into combo box ?Code:SELECT Name FROM MSysObjects WHERE Type=5
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"
Leave a comment:
-
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 -
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
if user select one and the same value is to be assigned to below code(bold)Code:SELECT Name FROM MSysObjects WHERE Type=5
...Code:DoCmd.OutputTo acOutputQuery, [B]rs!Name[/B], acFormatXLS, "" & fullpath & "\" & [B]rs!Name[/B] & ".xls"
-
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 -
-
-
Hi Megalog,
Thanks a lot it works.. finally my work finished with this...
Thanks thanks....Leave a comment:
-
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",
Leave a comment:
-
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
-
How to loop & substitute ???
Hi All,
From above sql i will get list of queries in my MDB fileCode:SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Type)=5));
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,
-
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
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
-
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));
-
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 ???Leave a comment:
-
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...Leave a comment:
-
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.....Leave a comment:
-
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....Leave a comment:
No activity results to display
Show More
Leave a comment: