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 Chriss Miller 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: *

  1. Trevil

    DBCC SHOWCONFIG - save results anywhere

    Thanks kss444. Yes, the sample you show is what you get in the window -- which is a nice report -- but it doesn't easily allow me to do analysis. The output file I get is actually a "fixed-width" text file with all of the columns for the data. I added code in my program to just import that...
  2. Trevil

    DBCC SHOWCONFIG - save results anywhere

    SWEEEEEET!! I just ran this: strSQL = "sqlcmd -S (local) -E -d MYDBNAME -Q""DBCC ShowContig With TableResults,ALL_Indexes"" -o""C:\TEMP\showcontig.txt"" MyAppId = Shell(strSQL, vbMinimizedFocus) Must have done something wrong -- because IT WORKED - FIRST TRY!! (And actually the output results...
  3. Trevil

    DBCC SHOWCONFIG - save results anywhere

    Yes, I could do as you suggest, but being the lazy individual that I am, I want to automate the process as much as possible - plus I will not have 'hands-on' access to the database. We have servers running in 70 countries and I don't have access. I already have a scheduled task that runs a VB...
  4. Trevil

    DBCC SHOWCONFIG - save results anywhere

    Trying to capture output from DBCC SHOWCONFIG WITH ALL_INDEXES to a file. I have seen examples using 'EXEC ...xp_cmdshell...' that allows output to a file, but access to the shell is blocked for security reasons -- and I don't want to enable it. Is there some other way to get the statistics...
  5. Trevil

    Type value of combo box

    I believe your combobox displays three columns that look something like: 1234 | Print123 | HP LaserJet Since the first field is the ID field, but you want them to type in the Code, which is the second field, you need to change your sql to be: SELECT tblProduct.ProductCode, tblProduct.ProductID...
  6. Trevil

    Slower performance if application launched by SHELL command

    Thank you very much for your input. 1. Yes, we created several different MDE's -- using different workstations in different environments. Normally we use a VB6 application that does "acApp.SysCmd 603, strDBPath, strMDEPath" but we also created an MDE by just doings "Tools | Database Utilities...
  7. Trevil

    Need to merge two columns into a report

    A simple example, assuming your table has fields named "FirstName" and "LastName", you could either have the query use: SELECT [firstname] & " " & [lastname] AS FullName FROM Contacts; or SELECT [lastname] & ", " & [firstname] AS FullName FROM Contacts; Learn from the mistakes of others. You...
  8. Trevil

    Create numbered history tables

    If you're using VBA code for your import, then you could always have it either save using a sequence number (would either require a table with a record that has a value that is incrementes, or you could get a list of the files already saved and either increment or loop), or you could save and...
  9. Trevil

    Passing a check box true value to sort in a form

    I see a few strange things: 1. Is the following really the code you are using? If gstSqlSort1 <> "" Then 'gstSqlOrderBy = gstSqlOrderBy & "," & gstSqlSort1 'End If because the 2nd & 3rd lines are comments. 2. In your 'Sort1_sub', you go to all of the trouble to build the sort...
  10. Trevil

    Type value of combo box

    What do you have for the properties "Limit To List" and "Auto Expand"? If you want a user to be able to enter a value not in your list, LTL must be "No"; If you don't have "Auto Expand" set to "Yes" the list will not narrow as you type. Learn from the mistakes of others. You won't live long...
  11. Trevil

    Slower performance if application launched by SHELL command

    We are testing a new release of an application developed with Access-2000, but find a very severe performance problem when the application is launched by a VB6 program that issues a SHELL command. When launching the application by double-clicking in Windows Explorer, one screen will load in 2...
  12. Trevil

    restoring files changed by check out (source safe)

    Sorry, but SS only has the versions that have been actually checked back in. Any local changes that have not been checked in will only reside on the workstation where the changes were made. As suggested before, you should change all four SS options(Tools|SourceSafe|Options) to "ASK". Learn...
  13. Trevil

    Changing the Indexed property of a field in a table

    You can safely remove / alter indices, but I would suggest doing it when you have exclusive use of the database. You will need to remove the relationship BEFORE you remove the index. If needed, I have some code laying around. Learn from the mistakes of others. You won't live long enough to...
  14. Trevil

    Tracking Email

    I think you would learn more by placing a breakpoint at the top of your code, then step through the code one line at a time. By doing that you will see where in your code that Outlook is popping up the interface. As a hint, it is where you are referencing message objects. Learn from the...
  15. Trevil

    restoring files changed by check out (source safe)

    In order for you to change objects in your project, since you mention it is controlled by sourcesafe, you would have needed to check them out, or cheat and use something like notepad to avoid sourcesafe. Once you changed your files, did you ever check them back into sourcesafe? If not, then...
  16. Trevil

    Check For Record Locking

    Making a dozen assumptions, try something like: If Me.Dirty then ' The record is being edited Else ' The record is NOT being edited End If Learn from the mistakes of others. You won't live long enough to make all of them yourself.
  17. Trevil

    How to get system variable (like SystemRoot)

    Thank you both for your suggestion. The 2nd link shows a list of common variables, plus code to display the names and content. Now I guess it is up to the tech folks to create and populate the variable. Thank you again! Learn from the mistakes of others. You won't live long enough to make...
  18. Trevil

    How to get system variable (like SystemRoot)

    Hello, We have 70+ servers that are going to be renamed this fall. Our tech folks say they will provide us with a variable named like %ServerName% that our application can use. I'm afraid I don't know how to use something like "%ServerName%" directly in code, but I do know how to read values...
  19. Trevil

    Second column in a combo box to a new field

    In the 'After_Update' event, try something like: Me.txtSecondField = Me.ComboX.Column(1) Learn from the mistakes of others. You won't live long enough to make all of them yourself.
  20. Trevil

    BIOS Corrupted -- Format Hard Drive?

    Hi, actually the $89 is for a third-party to reload the BIOS, run diagnostics, ship etc. I elected this route because HP was telling me the only way they would repair/replace under warranty was if I sent my hard drives in also -- which is not an option due to confidential information. Plus the...

Part and Inventory Search

Back
Top