Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: SlakeB
  • Content: Threads
  • Order by date
  1. SlakeB

    Recordset starting with a middle record - not the first

    I am having a problem with my recordset starting with a middle record instead of the first record. I'm trying to go through each record in the recordset to get values for a few arrays in my vbscript code. My DB table has the following form: BS_STP_NUM | LAT | LON 1 | -84 | 39 2...
  2. SlakeB

    Access Macros: Can you use relative paths??

    When performing certain macros like 'transfer to spreadsheet', can you use relative paths (like ../spreadsheets/test.xls) to the files involved or do you need to use the full absolute path (like C:/spreadsheets/test.xls)? relative paths don't seem to be working for me.
  3. SlakeB

    Compacting a DB with VBA or VBScript

    does anyone know how to compact and repair a DB with either VBA or VBScript?
  4. SlakeB

    Running Excel macros from an external .vbs file

    Does anyone know how to do this? I have an excel spreadsheet with two buttons on it. Each button triggers a macro. I want an external .vbs file to run those macros without me having to go into excel and push the buttons.
  5. SlakeB

    Access Query Error problem

    Every time I run a macro of mine (which triggers a query) I get this error: "Microsoft Access Can't Append All the Records in the Append Query" It asks if I want to continue, and I click ok. Is there a way to keep this message box from popping up when this occurs? I've tried 'On Error Resume...
  6. SlakeB

    Combining Data from 3 tables with SQL

    I have three tables. Each of these tables have the same structure (same fields). I want to create a new table with the same structure, and I want to put all the records from the other 3 tables into it (kind of like a master table). Does anyone know how to do this with SQL? The SQL doesn't...
  7. SlakeB

    Calling a vbscript from a vbscript

    Is it possible to call a vbscript file from within another vbscript file without using the DOS shell?
  8. SlakeB

    Problem with two record sets for a Message Board

    I am building a message board application, using an Access DB. The users can view all the main posts, and by clicking on one, they can view all of the subthreads for that post. On the ASP page displaying the main post, and the sub posts, I want a picture of the person who made the main post...
  9. SlakeB

    Querystring confusion

    The asp page I'm working with has a query string fed into it, and the URL is: replyToThread.asp?MainThreadNum=14 On that page, I have a form with this code: <form method="get" action="scriptSubThread.asp"> <table> <tr> <td align="right"> <input type="hidden" name="MainThreadNum"...
  10. SlakeB

    call a batch file from an Access module

    How can I do this? I know how to call a .vbs file: Call Shell("wscript.exe " & "myVBS.vbs", vbMaximizedFocus) How can I call a .bat file instead?
  11. SlakeB

    Count Num Records in Access table

    I'm trying to count the number of records in an error log table and display the result to the screen. Dim sqlCount, rsCount set rsCount = CreateObject("ADODB.Recordset") rsCount.open "tblErrorLog",objConn1 sqlCount="SELECT COUNT(*) FROM tblErrorLog" set rsCount= objConn1.execute(sqlCount)...
  12. SlakeB

    Put vbscript run-time error description into a log file

    Is there any way to automaticaly put the error description from a vbscript run-time error into a log file(either text file, or MS ACCESS table)?
  13. SlakeB

    Logging Access errors in external log file

    I have a form in my access db with a number of buttons tied to sub procedures. Right now, any errors are displayed in a message box: Err_Command1_Click: MsgBox Err.Description Resume Exit_Command1_Click End Sub Instead of this, I would like the errors to go to either an external log...
  14. SlakeB

    Run a subprocedure from a macro

    Does anyone know how to run a subprocedure from a macro? The sub I want to use is currently associated with a button (Sub Command0_Click()). This sub does a number of things like running a few macros and opening a few queries. I'm hoping to replace the button with a macro that has all of the...
  15. SlakeB

    Convert .xls to .csv from a .vbs file

    I have an excel document. The formating in it is not important, so I want to convert it to a .csv file (to make it easier to make changes to it from a .vbs file). I thought that I might be able to just rename it with a .csv extension, but that didn't work. When I opened the file in a text...
  16. SlakeB

    Running an external .vbs file from within Access

    Does anyone know how I can run an external .vbs file from within Access (With a button on an Access form triggering a macro)?
  17. SlakeB

    Edit excel file with external vbscript

    I want to make some formatting changes to an excel file by using an external .vbs file. Specifically I need to: 1. select all cells and remove word wrapping 2. change the text in one of the cells 3. reformat the dates in one of the columns Can anyone lead me in the right direction?
  18. SlakeB

    Unzipping with VBScript

    Does anyone know how to unzip and extract files to a specific location from the command line, or with some vbscript?
  19. SlakeB

    Using existing Access VBA with external VBScript

    I am using VBScript for a number of windows scripting tasks (i.e. retrieving remote CSV files and reformatting them for entry into an Access DB). The DB I'm working with has a number of macros already set up to import data, sort it, put it in the correct tables, etc. As it stands, I have to...
  20. SlakeB

    SQL with Like and &quot;!&quot;

    Can someone help me make some sense of this Access SQL statement? What is it doing in plain terms? UPDATE Order_Info SET Order_Info.ATTRIBUTE_8 = "BACKORDERED" WHERE ((([Order_Info]![ATTRIBUTE8]) Like "BACK*"));

Part and Inventory Search

Back
Top