UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
> Finding The Mscomctllib On Windows 64 Bit, Any Version    
 
   
GlenKruger
post Oct 20 2015, 01:19 PM
Post#1


Utterly Crispy UA Forum Administrator
Posts: 8,766
Joined: 29-September 01
From: Edmonton,Alberta,Canada


Finding the MSComctlLib on a 64 Bit version of Windows and setting the reference with code.

What this code does is open the database check which version of Access computer is running (32 or 64 Bit), then checks what version of Windows (32 or 64 Bit) then removes the reference to the MSComctlLib (MSCOMCTL.OCX), then sets the reference to the MSComctlLib (MSCOMCTL.OCX) from the correct location. Why would anyone need to do this is because the reference is located in different folders depending on which version of Windows the computer is running. You need to check which version of Access so you use the proper code to call the API’s used. This will eliminate errors on different computer configurations saving confusion and the need to fix the missing reference manually.
I have attached the code in a text document used to create a demo.

I hope you find this may come in handy.
Attached File(s)
Attached File  SetReferenceFromCode_.txt ( 5.78K )Number of downloads: 289
 
Go to the top of the page
 

Posts in this topic
- GlenKruger   Finding The Mscomctllib On Windows 64 Bit   Oct 20 2015, 01:19 PM
- - ScottGem   Hey Glen, I'm having a problem with this but ...   Mar 25 2016, 09:46 AM
- - GlenKruger   Hi Scott, I am not sure if this will work for Exce...   Apr 5 2016, 12:27 PM
- - JohnvanSomeren   Hi GlenKruger This code is exactly what I need. Th...   Aug 5 2016, 10:11 AM
- - GlenKruger   Hi John, QUOTE However, I couldn't test it unt...   Aug 6 2016, 08:42 AM
|- - ADezii   @Glen: First and foremost, great piece of Code...   Aug 6 2016, 01:06 PM
|- - GlenKruger   If Its64 should return a 0 if the OS is 64 bit and...   Aug 6 2016, 08:52 PM
||- - ADezii   @Glen: Thanks for the clarification. The only reas...   Aug 7 2016, 08:48 AM
||- - GlenKruger   @Dez This is strange indeed, maybe the version of ...   Aug 7 2016, 11:46 AM
|- - JohnvanSomeren   Hi GlenKruger and Dezii EDIT: I am now totally co...   Aug 7 2016, 10:37 AM
|- - GlenKruger   John the Call to CheckReferences looks to see if y...   Aug 7 2016, 11:51 AM
|- - JohnvanSomeren   Thanks for that update, Glen. I am using Windows...   Aug 7 2016, 12:11 PM
|- - GlenKruger   Hi guys I just tested it out on a Home version of ...   Aug 7 2016, 12:36 PM
|- - ADezii   QUOTE My conclusion is that the Enterprise version...   Aug 7 2016, 03:34 PM
|- - GlenKruger   @ADezil I have updated the Module code to get the ...   Aug 8 2016, 09:38 AM
|- - GlenKruger   @ADezil Not sure if Windows 10 Enterprise Comes in...   Aug 8 2016, 11:20 AM
|- - ADezii   It doesn't appear that the Value returned in I...   Aug 8 2016, 11:31 AM
|- - GlenKruger   Exactly it is too unreliable so I simplified it to...   Aug 8 2016, 12:57 PM
|- - JohnvanSomeren   Hi GlenKruger and IDezii, I have just spent a mind...   Aug 8 2016, 04:46 PM
|- - GlenKruger   QUOTE Just a final thought...what would we (I mean...   Aug 8 2016, 08:58 PM
|- - GlenKruger   John I forgot you were using Access 2010 so find a...   Aug 9 2016, 02:39 PM
|- - JohnvanSomeren   That was a nice thought. All is well now and an ...   Aug 9 2016, 02:58 PM
- - GlenKruger   Hi John, You tell me you are using Access 2010 32 ...   Aug 6 2016, 12:31 PM



Custom Search
RSSSearch   Top   Lo-Fi    13th December 2017 - 05:22 PM