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 SkipVought 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: kbuc6
  • Order by date
  1. kbuc6

    Retrieve path and account info for services

    See thread796-569241 for getting the path and check the regsitry value "ObjectName". I believe it contains the account name. K
  2. kbuc6

    Path of Windows Service

    When you install a windows service it writes an entry to the registry. One entry is the path to the executable. Read that entry to get the path. It should be HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\servicename . Look for the value of ImagePath. Here is what I did Private Function...
  3. kbuc6

    Exceptions

    Use e.GetType, this will return the exception type.
  4. kbuc6

    Can't run from a mapped network drive

    How about creating a system DSN that resides on each client machine. Could you use that instead of a connect string to work around the issue? I have not tried this but it is a possible resolution as long as the DSN exists on the server as well. - Keith
  5. kbuc6

    Can't run from a mapped network drive

    Not sure if this will help but here is my thought. I tried running a test application that I created ,to read eventlogs, via a drive mapped to my dev box. The client machine also has .net installed on it. My application generated an error on startup and I found the line generating the error was...
  6. kbuc6

    How to Determine User Privilege

    You can check to see if they are in a specific group (such as administrator) by using ADSI (ActiveDs namespace). myUsers = GetObject("WinNT://MyCompuer/Administrators") Dim bAdmin as Boolean For Each member In myUsers.Members If member.class = "User" Then If...
  7. kbuc6

    Microsoft Access and Outlook refrences versions 9

    Change the reference to version 8. If the functionality used in the app is not available in version 8 it should error out and you will have to upgrade in order for it to work. If it does work then you should be fine.
  8. kbuc6

    Package & Deployment Wizard

    You may be able to get it to work by stopping some of the services on the machine. For one package I stopped IIS and WWW and that solved my problem. For another one I stopped every service possible and it still would not install. I decided to test installs by editing the lst file and removing...
  9. kbuc6

    Query construction help needed!

    Why don't you just not change it. In an "IN" statement you could have zeros and you should just not get any rows back. USE Northwind SELECT * from Employees WHERE EmployeeID IN(1,4,0,0) this is a valid statement, requires no extra vb processing and allows sql to process it and you...
  10. kbuc6

    Recordset Amendments

    After you run your update you should check rs.EOF to see if you have passed the last record, which seems likely. When you call Rs.MoveFirst you are telling the recordset to move to the first record so as long as there are at least two records it will always work. You should check both EOF and...
  11. kbuc6

    Run .reg file

    I think you need to tell it what to do with the file. Try this Shell ("C:\winnt\Regedit C:temp\regtcpHN.reg",4). You can also pass command line parameters if you wish. This should work although I have not used it in a while. Basically you are telling it to shell the regedit exe and...
  12. kbuc6

    control ie browser settings

    Yes, you can have the logon script execute and write the homepage to the regsitry setting for IE. You can find it by doing a search through your own registry looking for your homepage text. I know it can be disabled through Global Policies (not sure how) and possibly the registry but I am not...
  13. kbuc6

    Message Box to Display if Duplicate Values are entered in Field

    If you use ADO and do an insert, you will receive an error stating that it cannot insert a duplicate value.
  14. kbuc6

    ToolTipText multiline capability and maximum length?

    Multiline, I don't believe you can. I ran a test app and couldn't get it to work. I also had a tooltip with 565 characters and it was fine. Screen size however, limited what I was able to see. You can test it out yourself in a project.
  15. kbuc6

    displaying mandatory fields

    It is really up to you and what would best server your users and your end result. An asterics (*) next to a field is always good. You can use the validate event to validate the field before the user exits it (look it up in the MSDN help) but this would occur each time the user tries to leave...
  16. kbuc6

    Refresh Internet Explorer

    I believe calling the navigate function and passing it the current page name will have it refresh.
  17. kbuc6

    Which version of MDAC do you package with VB6

    If you try to install mdac 2.5 on a machine running mdac 2.7 using P&D, it will not overwrite the mdac. I am pretty sure that even if you use something other than P&D the same will happen. Because MDAC is a MS install package, it will check the current version and only install if the install...
  18. kbuc6

    DLL registration help

    Using regsvr32.exe (located in the winnt/system32 folder) you can register both the dll and ocx. It does not matter what folder they are in as long as they are registered and the operating system can access the folder. If the file is registered on a remote machine as long as you have access to...
  19. kbuc6

    If then not working

    Do a response.write and write the values of the variables to the web page. I am guessing that if the code is right then the variables must be the issue. You may not be getting the results you think you are.
  20. kbuc6

    Send focus back to previous control

    Use the validate event of the text control. It is described in the MSDN help. Before a control loses focus the validate event will fire. In here you can do your checking. You then set the "keepfocus" boolean to determine whether or not to return focus to the text control or set focus...

Part and Inventory Search

Back
Top