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

  1. timotai

    Error setting active printer in word in Script task

    I found the solution to my own problem. I hadn't set the Server path prior to the printername i.e. \\serverpath\printer. For some reason this didn't matter in a normal VB.net app but SSIS script task seems to want it.
  2. timotai

    Error setting active printer in word in Script task

    Hi all I am attempting to create an SSIS package that uses data from SQL Server to automatically create letters. It all works fine except for when I try to change the active printer (oWord.ActivePrinter = Default_printer). At this point I get an error. I have used the same code in a VB.net...
  3. timotai

    Convert string to represent opject type

    Thanks that worked a treat!!
  4. timotai

    Convert string to represent opject type

    Hi All I have the following code to transfer objects to other access databases. I have created a form to provide the necessary information such as object type, name, destination to make it easy just to select the options and then transfer the selected database objects. DoCmd.TransferDatabase...
  5. timotai

    Trying to open access db, shuts down straight away

    Yeah. If I just open the form it works fine. If there was any other code it would run when I open the database myself. Also if I put the code on a module on another access database it opens up fine. It just seems to be from vb. Its very frustrating.
  6. timotai

    Trying to open access db, shuts down straight away

    Hi all This is really strange. I have the following code in an 'on click' sub to open up a form on an access database. But as soon as the database opens and loads the form it then shuts down. I can't see why and no other code is running and there are no macros on the database. If I open the...
  7. timotai

    VB 6 in xp functions not working

    Hi all This is strange and I can't see why it is happening, probably something stupid. I have a VB project that Ive just started trying to use in XP (build in NT4). Functions such as String$, Date, Left$, right$, space$, etc will not work. It just keeps giving complie errors. Does anyone know...
  8. timotai

    auto mailto without user intervention

    Hi all Does anyone know how to get a mailto to send of automatically, in other words not pop up for the user to amend and send. The reason I want to do this is because on our intranet we have a link that sends a mail to a mailbox and replies with another e-mail that has an attachment with a...
  9. timotai

    Format Table field to percent

    HI all I am using the following code to create a table: Set dbs = CurrentDb Set tdf = dbs.CreateTableDef(tabname) Set fld = tdf.CreateField("system", dbText, 30) tdf.Fields.Append fld Set fld = tdf.CreateField("Potential_Availability", dbText, 30) tdf.Fields.Append fld...
  10. timotai

    find dates for outages

    Don't worry, I found it
  11. timotai

    find dates for outages

    Thanks for the help, but i can't do that as the system is not up the same time every day. I have however got a solution to my problem by use of loops in code. I haven't put all the code in yet but have set up the loops and queries required. I am having a slight problem though. When I run the...
  12. timotai

    find dates for outages

    This is very complex and so Im not quite sure how to describe it properly so forgive me if its not understandable and please feel free to ask any questions. All comments and ideas are greatly appreciated. I am creating a database to capture outages on our computer systems. The way it works is...
  13. timotai

    Formatting Excel spreadsheet where data exists

    Hi I have a database which creates a excel spreadsheet. I want to be able to format the colours of the spreadsheet cells fo rthe background and font. However the tricky bit is if there is data in a cell within a given range I want it to be one set of colours and where there is no data I want to...
  14. timotai

    Cannot delete a module when running the code in module with same name

    I found a post with the following code: ActiveSheet.Copy ActiveWorkbook.SaveAs FileName:= _ "\\Resrstredega003\Groupsd2\GIPROJ\TSU\Support Services Weekly & Monthly Reports\WEEKLY_REPORTS\" & Directory & "\" & File & "\" & savename & ".xls" Saves it without the modules. Thanks so...
  15. timotai

    Cannot delete a module when running the code in module with same name

    Im using excel 97. I am creating it by using the savecopyas method and then reopening the file to edit it. I have been trying and trying. One idea I have, but don't know if/how it is possible. I was thinking if I could export the worksheet and save it under the name I want there wouldn't be any...
  16. timotai

    Cannot delete a module when running the code in module with same name

    Ive tried this but the same happens. It runs the code but the module doesn't delete. The module is a exact replicar of the one that is running. What seems crazy to me is that just because they have the same name it seems they won't delete. But they are in different projects. It just doesn't...
  17. timotai

    Cannot delete a module when running the code in module with same name

    Hi all Heres a Brain teaser: I have a spreadsheet that I copy through code and then edit the copy and delete the macros. The reason I want the macros delted on the copy is because I am sending it over e-mail and some of the exhange servers of the people I am sending it to do not allow VB code...
  18. timotai

    Excel resize on open

    You got me onto the right track though so thanks. I have found my solution : ActiveWindow.Zoom = False Now my other question is it possible to run this at start up like an autoexec? Thanks tim
  19. timotai

    Excel resize on open

    I think there is a bit of confusion with what I want. it is the zoom on the worksheet that I want to change. I want it to adjust to fit all of my data on my spreadsheet into the screen so the user does not have to scroll to see any of it. Thanks Tim
  20. timotai

    Excel resize on open

    Hi all is there a way I can make an excel spreadsheet resize to fit the screen resolution on the PCit is being opened on. This is because the users who will pick up this spreadsheet have varying resolutions. Thanks Tim

Part and Inventory Search

Back
Top