Search results

  1. B

    Run Access VBA code from .bat file

    Thank you Pat Hartman, the code I want to execute contains some more stuff not only changing links. I've checked the databases provided by thedbGuy, thanks for this. But the code is stored under the new opened database db1. I have the code in the original database and want to execute this...
  2. B

    Run Access VBA code from .bat file

    Thank you so far. Let me describe my issue. I got a database with a procedure I want to run in another database. It still doesn't work. I don't know the issue. I'm using Access 2013,maybe that's the issue??? Can I open a table in the new opened database, as a simple test? Thank you.
  3. B

    Run Access VBA code from .bat file

    Hello Gasman, unfortunately I get the same error message: Run-Time error 2517 Procedure Test couldn't be found by Microsoft Access. I'm getting desparate, shouldn't be so difficult to open another database and run a program :(
  4. B

    Run Access VBA code from .bat file

    I get the error message: Run-Time error 2517 Procedure Test couldn't be found by Microsoft Access. I have a Sub routine called Public Sub Test().
  5. B

    Run Access VBA code from .bat file

    Hi Lightwave, my playground is a little restricted here. Any idea how to start a module in another Access database? Thanks. Rgds, Ben
  6. B

    Run Access VBA code from .bat file

    Hi All, I just learned that it's not allowed to use vb scripts and batch files in our company. How can I open another database and run the original module code there? I tried this,without success: https://bytes.com/topic/access/answers/900155-how-run-procedure-database-code-another-db...
  7. B

    Run Access VBA code from .bat file

    Hi, thanks for the suggestion. Unfortunately there are 100s of databases. Somehow I would like to open them up subsequently and run the same code. I tried to start at first one database running a bat file with: Start "folder/XX.mdb" Didn't work out. TA-1012 cihazımdan Tapatalk kullanılarak...
  8. B

    Run Access VBA code from .bat file

    Hi guys, can someone help me out? Following issue: Wanna open all Access databases under one specific folder and run the same VBA code. The code is ready, the only thing for me is to find out how to start Access from a bat file and run the same code for all databases. The background is that...
  9. B

    Replace a string in vba code

    Hi guys, thank you for your help. I used following now it works: Sub IterateAllModules() Dim vnt As Variant Dim x As Integer Dim s As String Dim mdl As Module With CurrentProject For Each vnt In .AllModules s = vnt.Name Set mdl =...
  10. B

    Replace a string in vba code

    Hello arnelgp, unfortunately this doesn't work. I only need to replace a certain portion of a line not the complete one. And I need to go through all modules. Thanks. Rgds Ben
  11. B

    Replace a string in vba code

    Hi, you're right, just corrected. I was searching for String X. Rgds, Ben
  12. B

    Replace a string in vba code

    Hi all, I got following issue: Want to replace a string in my VBA code. Tried this one, however it doesn't replace the string: Public Sub ttt() Dim vbComp As VBComponent Dim mdl As CodeModule Dim i As Integer Dim lin As Variant For Each vbComp In...
  13. B

    Subqueries in Access

    Hello, I try to execute following subquery: DoCmd.RunSQL "SELECT DISTINCT Q_PRICES.Material, Q_PRICES.Product_Class INTO TEST " & _ "FROM Q_PRICES " & _ "WHERE " & _ "(SELECT Q_PRICES.Material " & _ "FROM Q_PRICES " & _ "WHERE...
  14. B

    Pop up form in Access 2013

    Allright I will try to create a new database. Thank you all.
  15. B

    Pop up form in Access 2013

    Yes this Form is selected and still exists. A closing macro doesn't exist.
  16. B

    Pop up form in Access 2013

    Dear all, I got a curious issue here: Set up a pop up form under Options\Current Database\Display Form TEST For some days it doesn't show anymore this TEST form when I open the database. Is there anything I have to change? Do I have to delete this TEST form and create a new one? Thanks...
  17. B

    Mutliplication with str function

    Thanks spikepl, I found the solution, it was based on the DSUM. Now I sum up over the right values and get the expected result. Thanks.
  18. B

    Mutliplication with str function

    With Debug.Print b I get the right number 0.23. I tried also to use " & b & ",but that doesn't work out...
  19. B

    Mutliplication with str function

    Hi all, I got the following problem. This code doesn't calculate the exact value: Sub TEST() Dim strSQL As String Dim b As Double DoCmd.SetWarnings False b = DLookup("MC", "COMMON_DISTRIBUTION", "YEAR = 2015") strSQL = "Update TNS_HIST Set [TNS_in_TRY] = " & _ "...
  20. B

    Creat an EXE or BATCH file

    Hi all, is there a way to create some sort of an EXE or BATCH file in any Windows Explorer folder, that executes me a specific Excel Macro? My problem is that I got several files split up by Departments, updated every day. So far I have to open each file and update the format. It would make...
Back
Top Bottom