Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 41
  1. #16
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19

    Here is a list of my References


  2. #17
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    Here is a list of in References box

    Click image for larger version. 

Name:	TaskReferences.jpg 
Views:	19 
Size:	57.0 KB 
ID:	51158

  3. #18
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Hi
    You haven't added the required Microsoft Office 12.0 Object Library reference:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	18 
Size:	19.8 KB 
ID:	51159

    I would also strongly recommend you replace the old DAO 3.6 reference with the newer Microsoft Office 12.0 Access Database Engine Object library also shown above

    Does that fix your error 31602?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #19
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    I thought because it was checked off that it was already added. How do I add it? Clicking OK doesn't do anything.

  5. #20
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Quote Originally Posted by chiefweigum View Post
    I thought because it was checked off that it was already added. How do I add it? Clicking OK doesn't do anything.
    Tick the checkbox to add a reference then click OK to close the dialog box
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #21
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    If I click on the checkbox, I get the error below. Since it is already checked and I click OK and then run the Task, I still get the 31062 error.


  7. #22
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Sorry but you've lost me. The reference I mentioned, Microsoft Office 12.0 Object Library, was not checked in your screenshot
    Have you added it since?
    Error 31602 appears to be specific to A2007 and does not exist in later versions
    It may be that there is an issue preventing the code working in that version but I can't replicate it at the moment
    Remember it was designed for A2010 or later

    If testing an import file, try clicking modify external file path, specify the correct path for the file then click Execute Action.
    Then click Run Task & Execute.
    That allowed the task to run for me in A2007 though I then got error 2164 - you can't disable a control while it has the focus.
    That's a version specific error to A2007 that is easily fixable if it works otherwise
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  8. #23
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    It was checked when I sent the screen shot (2nd line down from my 3:43 post today - see above) and when I enter the path or even try to rename the Task, I get the 31602 error. It sounds like my A2007 version will not work with these new fixes. That's too bad as it would safe me lots of time each morning. I really appreciate you taking the time to help me. If, in the meantime, you know how to fix the 31602 error, that would be great.

    Thanks a bunch

  9. #24
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    It's late on the UK side of the pond so I'll chime in in case this is timely.
    2nd line down in the image of your list is not what you were told to set? That is Microsoft Access not Microsoft Office.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  10. #25
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    I don't know what post you sent at 03:43 as the times are displayed relative to the time zone for each person viewing the thread.
    You probably mean the screenshot in post #17.

    As @Micron said, you are confusing references. The one required is highlighted in the screenshot I gave in post #18.
    I tested the app without that reference and got error #31602 in A2007. When I restored the reference, that error disappeared.

    As mentioned in post #22, I then get error 2164 but that is easily fixed.
    Version specific references such as this are inevitable as the app wasn't written for A2007
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  11. #26
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    My apologies, I was looking at the wrong one. I do not have the Microsoft Office 12.0 Object Library listed in my options so how do I get it added to the list?

  12. #27
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    It doesn't show up when I click Browse unless it has a different name otherthan Microsoft Office 12.0 object Library

  13. #28
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Here are miine in 2007
    Print Time: 12:11:51 :: Item - Name and Description
    Item 1 VBA Visual Basic For Applications 4 0
    Item 2 Access Microsoft Access 12.0 Object Library 9 0
    Item 3 stdole OLE Automation 2 0
    Item 4 DAO Microsoft Office 12.0 Access database engine Object Library 12 0
    Item 5 Office Microsoft Office 12.0 Object Library 2 4
    Item 6 VBIDE Microsoft Visual Basic for Applications Extensibility 5.3 5 3




    Print Time: 12:11:51 :: Item - Full Path
    Item 1 C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
    Item 2 C:\Program Files (x86)\Microsoft Office\Office12\MSACC.OLB
    Item 3 C:\Windows\SysWOW64\stdole2.tlb
    Item 4 C:\PROGRA~2\COMMON~1\MICROS~1\OFFICE12\ACEDAO.DLL
    Item 5 C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL
    Item 6 C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB




    Print Time: 12:11:51 :: Item - GUID
    Item 1 {000204EF-0000-0000-C000-000000000046}
    Item 2 {4AFFC9A0-5F99-101B-AF4E-00AA003F0F07}
    Item 3 {00020430-0000-0000-C000-000000000046}
    Item 4 {4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}
    Item 5 {2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}
    Item 6 {0002E157-0000-0000-C000-000000000046}
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  14. #29
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    As @Welshgasman has indicated, you need to browse for MSO.dll which will be in the folder C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\ if you have 64-bit Windows or C:\Program Files\Common Files\Microsoft Shared\OFFICE12\ with 32-bit Windows
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  15. #30
    chiefweigum is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2019
    Posts
    19
    Thanks guys - the path to where those files are located really helped. I now have the same 6 as @Welshgasman but some of them look like different versions. With all of these installed, I still get the 31602 error. I feel bad for taking up your time so if you give up, I can live with the extra time it takes me to locate the tasks when I want to run them. Funny, some of them I use more often so I now how much page scrolling I need to do to find them.


Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import Linked Outlook Tasks Folder Doesn't Import All Data
    By Bkper087 in forum Import/Export Data
    Replies: 0
    Last Post: 11-19-2019, 12:06 AM
  2. Sort the import tasks in the manage data task window
    By chiefweigum in forum Import/Export Data
    Replies: 10
    Last Post: 10-19-2019, 07:41 AM
  3. Saved imports and exports disappeared from manage data tasks view
    By mmoria2312 in forum Import/Export Data
    Replies: 8
    Last Post: 11-07-2016, 05:07 PM
  4. Outlook tasks import
    By dantray02 in forum Import/Export Data
    Replies: 3
    Last Post: 05-21-2014, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums