Search results

  1. Kinger43

    ADO connection to Oracle database

    No, I assume it's getting hung up on the TRUNCATE part. I really don't think I need to change connection strings etc. The code works fine except for the srcDB.Open line. And as far as that goes it works except for putting in the password. This code up until a month or so ago worked just fine...
  2. Kinger43

    ADO connection to Oracle database

    And here's what happened.
  3. Kinger43

    ADO connection to Oracle database

    I know how to comment things. I'm not completely ignorant. So you are saying I should have this as well? set srcRS = CurrentProject.Connection
  4. Kinger43

    ADO connection to Oracle database

    I don't follow. This code takes the linked Oracle tables which I cannot access and runs update and append queries to update and append the Oracle tables with Access tables that I do have access to. Changes are made daily to the Access tables and then those changes are applied to the Oracle...
  5. Kinger43

    ADO connection to Oracle database

    Code now looks like this: Public Sub OMS_Update() Set srcDB = CurrentProject.Connection 'srcDB.Open "database", "username", "passord" srcDB.CursorLocation = adUseServer DoCmd.SetWarnings False Set srcRS = New ADODB.Recordset srcRS.Open "TRUNCATE TABLE OI_LOC", srcDB, adOpenDynamic...
  6. Kinger43

    ADO connection to Oracle database

    Yes, all the appropriate tables are linked to the Access database already.
  7. Kinger43

    ADO connection to Oracle database

    Why did it work a month ago and stop working now if this is just spinning my wheels? You are going to have to elaborate on why I have to change the code.
  8. Kinger43

    ADO connection to Oracle database

    Again, not my code. I'm not going to go changing someone elses code.
  9. Kinger43

    ADO connection to Oracle database

    It isn't my code, I can't touch anything on the Oracle server, but it is my job to make sure this code runs everyday. I can't go changing connection strings etc. Do you have any insight as to why this one isn't working? I had gotten this problem resolved several months ago and the problem has...
  10. Kinger43

    ADO connection to Oracle database

    Here's the code: Dim srcDB As ADODB.Connection Dim srcRS As ADODB.Recordset Dim txtStatus As String Public Sub OMS_Update() Set srcDB = New ADODB.Connection srcDB.Open "database", "username", "password" srcDB.CursorLocation = adUseServer After this it just goes into calling a bunch of...
  11. Kinger43

    December 21 2012, should we be worried??

    Here is where your problem is Col; you seem to think that everybody in America is that way. What you don't realize is that it is our politicians and media that behave in that manner. Most of us here in the USA would like them to leave us alone as well, but you see these power hungry socialists...
  12. Kinger43

    What's your best/worst joke?

    About the economic stimulus: Sometime this year, we taxpayers may again receive an Economic Stimulus payment. This is an exciting program. I'll explain it using the Q and A format: Q. What is an Economic Stimulus payment? A. It is money that the federal government will send to...
  13. Kinger43

    Run macros in different database

    I found the solution, but haven't been able to perfect it. I am calling the macros from a batch file and setting up the task scheduler to run the batch file. If I run the batch file manually while I am sitting there it runs fine. It ran fine from the task scheduler for a couple of days, but...
  14. Kinger43

    Windows Cannot find '[path/filename]'...

    I have written a batch file that calls shortcuts to 4 macros in 4 different Access databases. The goal is for this batch file to run every night and update the 4 databases. The problem that I am running into is that for one of the databases it will run the macro completely through and then throw...
  15. Kinger43

    Run macros in different database

    Ya, that made things worse.
  16. Kinger43

    Run macros in different database

    I'm not, I have just referenced the secondary db and called the function. If I run the function in the secondary database by itself it runs fine; if I call it from the primary database it seems to get things out of order and hangs up. I'm going to try opening the secondary database with...
  17. Kinger43

    Run macros in different database

    Yes, I can open the secondary db from the primary, its the doing stuff that I'm having trouble with. I figured out this most recent problem. I had the module named the same as the function. I'm not much of a programmer, that is poor practice I guess.
  18. Kinger43

    Run macros in different database

    Option Compare Database Public Function Runmacros() DoCmd.RunMacro "Daily AS400 TNS Update Macro" End Function This is the secondary database code, it just calls the macro Function Update() Call Runmacros End Function This is the primary database code that calls the other function.
  19. Kinger43

    Run macros in different database

    I tried writing a module in one of the secondary databases and referencing the database in the primary database and calling the module from there. It then gave me an error on the call function that said it was expecting a variable or procedure, not a module. What does this mean and how do I make...
  20. Kinger43

    Run macros in different database

    Yes, I tried to SetWarnings False. It's not an Access warning, it is an office warning, it goes deeper than the code that I am running.
Back
Top Bottom