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 strongm 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: tekvb1977
  • Order by date
  1. tekvb1977

    Output To Method Runtime Error

    I have table called "North Central Table". This table has around 30,000 records. When I try to output this table to MS Excel, I get the following error: No records limit exceeded. DoCmd.OutputTo acOutputTable, "North Central Table", acFormatXLS, "C:\Documents North Central.xls", False I know...
  2. tekvb1977

    Directory Code to access files is not working?

    ...used to work on my machine but now all of a suddent it's not working properly: Dim strFolderName As String strFolderName = Dir$("G:\QuoteSheets\*QuoteSheet*") If strFolderName = "" Then Exit Function End If My directory ("G:\QuoteSheets\*QuoteSheet*")is not empty. It has two excel files...
  3. tekvb1977

    How to import one particular sheet of an excel file to spreadsheet?

    I have an excel file that has two tabs: i.e. two worksheets A and B. I only want to import worksheet B into excel table. How could I do that. I tried using the following command but it tries to import both sheets into the access table. DoCmd.TransferSpreadsheet acImport, , "AppendQuotes"...
  4. tekvb1977

    How to copy file from one folder to another

    How do I copy file from one location to another in VBA for Access. I have a file that resides on one paritcular folder on the network drive. I would like to move it to a different folder on the same drive. Any thoughts about the code syntax. Thanks, J
  5. tekvb1977

    Microsoft Excel VBA Code to convert .xls file to .csv file

    I have an excel spreadsheet (.xls). I like to convert it to (.csv) format automatically. Not sure what would be the code in Excel VBA to do so. Any ideas, thoughts would be appreciated. Thanks. J
  6. tekvb1977

    How to field names of a table in VBA?

    I have a table and I would like to change its field names automatically using VBA. I know I have to use the table definition object in access but don't know how I could write the code (syntax) to do it. Any ideas/thoughts will be highly appreciated. J
  7. tekvb1977

    Automatically forwarding an e-mail in outlook!

    thanks ..... it works
  8. tekvb1977

    Automatically forwarding an e-mail in outlook!

    In outlook, how can I forward a particular incoming e-mail to 2 differet people automatically. Thanks a lot in advance. J
  9. tekvb1977

    How to import excel files into access tables automatically!

    Thanks a bunch and sorry for bothering you over and over again. Comma has taken care of the above error.
  10. tekvb1977

    How to import excel files into access tables automatically!

    I was using the worng path. Kill command would work. How ever, the command below DoCmd.TransferSpreadsheet acImport, "DummyTable", "G:\VAPA\VAPAMailFolder\" & strFolderName doesn't work. It gives me the following error: "External Table is not in the expected format" DummyTable has the...
  11. tekvb1977

    How to import excel files into access tables automatically!

    Thanks. Yes it is now referring to the right file name. How can I delete the file using VBA after it gets imported to access. Kill FileName command doesn't seem to work. J
  12. tekvb1977

    How to import excel files into access tables automatically!

    Pete, Thanks a lot for your quick reponse. In your code below: ****** Do Until strFolderName = "" 'import DoCmd.TransferText 'your stuff here 'get the next file strFolderName = Dir$ Loop ****** How can I kill the file after I import it. What's the VBA...
  13. tekvb1977

    How to import excel files into access tables automatically!

    I have a folder on my C:\ drive that has bunch of excel spread sheets. I want to move through each of the spreadsheets and see if a certain portion of the name of spreasheet matches with my string criteria. If it macthes, I like to export that file into access table automatically and then I...
  14. tekvb1977

    automatically Updating Access Database at night???

    Is there a way my access database could get updated automatically at night without me opening up the database and hitting the update command button. I know Access has a scheduler that could do it but I don't know exactly how to use it. Thanks J
  15. tekvb1977

    How to reference to a second mailbox in Outlook??

    I have the VB code that could reference to my default Inbox folder: Dim ns As NameSpace Dim Inbox As MAPIFolder Dim Item As Object Dim Atmt As Attachment Dim FileName As String Dim myRecipient Set ns = GetNamespace("MAPI") Set Inbox = ns.GetDefaultFolder(olFolderInbox) I have another mailbox...
  16. tekvb1977

    How to reference to a second Outlook mailbox in VBA

    I have the VB code that could reference to my default Inbox folder: Dim ns As NameSpace Dim Inbox As MAPIFolder Dim Item As Object Dim Atmt As Attachment Dim FileName As String Dim myRecipient Set ns = GetNamespace("MAPI") Set Inbox = ns.GetDefaultFolder(olFolderInbox) I have another mailbox...
  17. tekvb1977

    automatically opening an e-mail in Outlook?

    Is there a way in VBA that would open up the most recent e-mail from a particular sender in outlook. The following code works fine but it only works if I have the e-mail open (Set myItem = myOlApp.ActiveInspector.CurrentItem). ' ########## Set myOlApp = CreateObject("Outlook.Application") Set...
  18. tekvb1977

    EXporting Excel Attachment File from Outlook to my personal folder?

    Thanks a bunch. Now the code works. But there is one problem. I have to open the e-mail before it running the code in order for it to work. Is there a way that an e-mail from a particular sender is opened first automatically before running the code below: Set myOlApp =...
  19. tekvb1977

    EXporting Excel Attachment File from Outlook to my personal folder?

    Thanks for your help. Now I am getting the error that variable "myOlApp" is undefined: Set myOlApp = CreateObject("Outlook.Application") Set myItem = myOlApp.ActiveInspector.CurrentItem Set myAttachments = myItem.Attachments myAttachments.Item(1).SaveAsFile "C:\My Documents\" & _...
  20. tekvb1977

    EXporting Excel Attachment File from Outlook to my personal folder?

    It refers to name of the first attachment in the outlook e-mail. I get the following error everytime I try to run the sub procedure in outlook: "The macros in this project are disabled. Please refer to the online help or documentation of the host application to determine how to enable macros."...

Part and Inventory Search

Back
Top