How to Link Oracle database in MS Access Programmatically

We had an application written in MS Access and has using Oracle database as back-end. Tables are linked manually using the ODBC link. Everytime we run the MS Access form it will always prompt for ODBC connection window that asks for username and password.
Is there any way to programmatically (code) do it so as it wont prompt anymore for ODBC username and password?
Thanks.

'You will probebly need to change some things but this is a good start
Dim db As DATABASE
Dim rs As Recordset
Dim retval As Variant
Dim DSNName As String, DSNUser As String, DSNPassword As String
retval = SysCmd(1, "Connection Oracle...", 16)
DSNName = "" 'fill those 3 next lines
DSNUser = ""
DSNPassword = ""
On Error GoTo Event_Err
retval = SysCmd(2, 4)
DoCmd.TransferDatabase acLink, "ODBC", "ODBC;DSN=" & DSNName & ";UID=" & DSNUser & ";PWD=" & DSNPassword & ";DBQ=edr1;DBA=W;APA=T;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;FRL=F;MTS=T;CSR=F;PFC=10;TLO=0;;TABLE=CRJDACTDATA.TBL_EXPORT", acTable, "CRJDACTDATA.TBL_EXPORT", "Test1", False
DoCmd.DeleteObject acTable, "Test1"
retval = SysCmd(2, 16)
retval = SysCmd(3)
Event_Exit:
Exit Function
Event_Err:
MsgCritical "Vous ne pouvez accéder au suivi du dossier d'action que si DDA est installé sur cet ordinateur."

Similar Messages

  • To connect oracle database with ms access database

    i want to connect oracle database with ms access database
    i have follow the following steps
    1. create ms access database.
    2. create system dsn.
    3. make change in listener.ora.
    4. make change in hs folder.
    5.change the tnsname.ora.
    6. lsnrctl stop and lsnrct start.
    7. create database link in oracle sql*plus.
    8.select the table of ms access
    but i have return the foloowing error.
    ORA-12154: TNS:could not resolve the connect identifier specified
    using window 2000, oracle 10g

    Have a look on ths thread, may it helps ...
    Re: copy access data into oracle with form builder 9i

  • How to install Oracle Database Audit Vault

    Hi all,
    i have my database in oracle 10g in linux environment, i wont to install oracle database audit vault 10.2.3 in linux
    can any 1 let me know how to install it or what or the steps required.
    any usefull link would be helpfull
    Thanks....

    Hi,
    Please check : How to install Oracle Database Audit Vault - Yahoo Video Search Results
    Thank you

  • How to secure oracle database

    how to secure oracle database,
    I am having the oracle database which will be packed as package in a machine and will be delivered to client place , need to ensure that the client will not access the database by any means.
    Even he breaks the password (he should not break but despite client has broken the password) and went inside the database, he should not be able to see the databases Procedures ,views,functions and triggers.
    Can we Encrypt this,if so can client will be able to decrypt the same?
    Is there a way to secure the database from the client not to access the database.
    Thanks!

    933663 wrote:
    so how can i secure when there is an option to unwrap ,then there is no use in using the wrap right?Yes, because when there is a lock there is a key, when there is wrap there is unwrap, when there is encrypt there is decrypt. We can not be rest assure for hack the code. I think you should think and explore above security options which are provided by Oracle itself which have lock and key by Oracle itself; which i have mentioned in my previous post.
    You just think that if that is that much easy and cheap, then why Oracle have developed above options/features by expending many dollors..!!!
    Regards
    Girish Sharma

  • How to connect Oracle database in VC++.06

    How to connect Oracle database in VC++.06 please give me details

    on the Insert command button and add the following code to the button click event:
    try
    string results = "";
    OracleConnection con = new OracleConnection("DSN=Employee;uid=system;pwd=test");
    con.Open();
    .....................................................................

  • How to connect oracle database from tuxedo

    Hi,
    How to connect oracle database from tuxedo.
    If any one can help me.
    Regards,

    it depends on configuration your going to choose, there are two ways--
    - Using X/Open standards, for this
    you have to make an entry of Resource manager in $TUXDIR/udataobj/RM file.
    Then in UBBConfig file in GROUPS section u have to set Openinfo.
    It also depend on which database you are going to use.
    In your service now you need to call tpopen() API from tpsvrinit() function.
    - Other possibility is, take an implicit connection using Pro*C or Pro*Cobol whatever platform you are using.
    EXEC SQL Connect ...

  • How to connect oracle database using jsf

    how to connect oracle database using javaserver faces with connection pooling

    Here is one way...
    http://jakarta.apache.org/commons/dbcp/

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • How to connect oracle database into VC?GIve step by step.

    Hi Experts,
    Please help
    How to connect oracle database into VC?
    I need step by step.
    what shall i do the first to connect via jdbc or  something else.
    whether we have to create dsn name or using jdbc connections?which one to use?
    Please give the basic steps.Its very urgent.
    Thanks and Regards,
    Nutan

    Hi ,
    all information are in the following document:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424">How to Configure a Business Intelligence JDBC System for Visual Composer</a>
    Rgds,
    Karim

  • How to mounted oracle database automatically  in oracle version 8.1.7?

    i want to know,how to mounted oracle database automatically in oracle version 8.1.7?

    Does this mean you are not using the WIndows operating system, or you doi not want to do this 'manually' using some point and click method?
    If this means, "do it automatically for reboots" and you are using the Windows OS, you need to set up a service and set it to automatic at reboot. Or, again in a Windows environment but at commnand line, use "net start {service name}" - as described in the manual.

  • How to download oracle database 11g in macbook pro

    how to download oracle database 11g in macbook pro

    When i download oracle database 11g using any other download manager it always fail the download and displays the error " Certificate verification error for profile.oracle.com:,Unable to establish SSL connection ,plz tell me which download manager i used for downloading oracle database 11g
    Edited by: user10501953 on Dec 5, 2009 12:50 AM

  • Access oracle database from microsoft access?

    It is possible access to an'ORACLE database from Microsoft Access?

    Yes, that's possible.
    You can find several threads for this on the forum,e.g.
    Oracle & MS Access

  • How to install Oracle Database Client 32-bit libraries.

    Dear All,
    In the document : http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31765.pdf
    it is written "For 64-bit Linux system installations, you must use the Oracle Database Client 32-bit libraries"
    how can i install just the libraries from OUI Database 11.2
    Is it must to install these libraries first, whatif I install Oracle11.2 64bit client, and then install the OBIEE. Anyhow i need to install OracleDBClient to connect to Oracle server 11.2.

    You can't "just install the libraries", you need a full ORacle client installation. The Oracle client can be installed after OBIEE but you must have an Oracle client to connect to an Oracle database via OCI (which is the recomended approach). 64bit client should be fine as long as it has the 32bits libraries. The 10g client does, not sure about the 11g client. Make sure you install the FULL Oracle client, not the Instant Client. The 32bits client libraries are located under lib32, the lib directory is for the 64bits ones. You might need ot re-link them if they were linked correctly during the client installation. But for more information post a message in the Oracle client forum, this is the OBIEE forum.

  • How to start Oracle database in solaris Machine

    I installed Oracle database in my solaris machine. Everything went fine .. I was able to install it and test the database if it's working or not.
    Something happened that made me shut down and restart the solaris machine, the problem is that Oracle is not running, so I have to start it manually, and I'm not sure how to do that ... Is there a way to start Oracle automatically once the solaris machine is started ...
    I'm using the SSH Secure Shell Client to configure and install everything into the solaris machine ..

    Here is the work around for starting oracle instance automatically.
    1) logon the system as root user.
    2) under /etc/init.d/ directory, create a file name oraclestart(name the file to what you feel comfortable). eg: /etc/init.d/oraclestart.
    with the following content:
    #!/bin/sh
    # Created by Henry Nguyen
    # Date 10/11/2005
    # Script to automatic start and stop oracle instances on server
    ORACLE_HOME=/export/home/oracle/product/9.2.0.1.0 (diffrent on your system)
    if [ ! -f $ORACLE_HOME/bin/dbstart || ! -f $ORACLE_HOME/bin/dbshut ]; then
    echo missing oracle start/stop script
    exit 1
    fi
    case "$1" in
    'start')
    su - oracle -c '$ORACLE_HOME/bin/dbstart'
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl start'
    'stop')
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl stop'
    su - oracle -c '$ORACLE_HOME/bin/dbshut'
    esac
    3) create 2 soft link as following:
    ln -s /etc/init.d/oraclestart /etc/rc2.d/S99oraclestart
    ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
    Note the S99 and K10: that are Solaris priorities to when start and stop an oracle instance and those letter must be capitalized.
    Hope this will help you

  • How to connect oracle database from solaris platform

    I have installed oracle9i client on solaris8, how can I configure to connect other oracle database?
    thanks for your assistance!!

    If the database is remote you would need to setup a sqlnet.ora and a tnsnames.ora file. Their locations are platform dependent. On AIX the files are in /etc while on some platforms you find the files in /var/opt/oracle and on others $ORACLE_HOME/network/admin. We have a Sun Sparc running SunOS 5.6 that has them in /var/opt/oracle.
    Configuation can be done through the installer as part of the install process, probably using a gui tool, or manually. We vote for manually.
    See your install README files and the ORANET manuals for details. Or once you know where the files belong copy them from a platform that can access the db you want to reach and just remove unnecessary lines for other databases.
    HTH -- Mark D Powell --

Maybe you are looking for

  • Easy dms multiple document number search

    Dear experts, We have installed easy dms 6.0 successfully. We have a problem in usage. In selection screen we need to search "document number" field with multiple search criteria, however the system permits only 1 entrance. Thanks for your help.

  • Problems importing video

    I receive the error "stream requested does not exist" when I attempt to import mpeg 2 video to encore 2.0. I have done a bitrate viewer analysis and my results are as follows: Num. of picture read: 1305 Stream type: MPEG-2 MP@ML VBR Resolution: 720*4

  • Moving Images and All Data between 2 Connected Macs via LR 3?

    I have an older MBP 17" and a couple year old Mac Pro, both running OS 10.5.8, which are sitting next to each other and I can transfer data wirelessly.  Both running Lightroom 3.4.1. I have about a year of photos in Lightroom on my MBP and I'd like t

  • How to reinstall Apple apps (FaceTime)?

    I have lost  "facetime" on my latest gen iPod Touch. How do I get it back?  (preferably without loosing everything else, of course!)

  • IDOC_INPUT_MATMAS01 INclude

    Hi All,    I had used IDOC_INPUT_MATMAS01 for the modification of material master updation. This FM is having a CALL CUTOMER FUNCTION '002'. Actually inside it there was a INCLUDE which needed to be activated and write a set of code inside it.