How to detect, if you are running 64-bit Office
New data type LongPtr is Long integer on 32-bit systems and LongLong integer on 64-bit systems, by checking it VarType you can find out on what environments you run your VBA code:
Function Is64BitOffice() As Boolean
Dim lp As LongPtr
Is64BitOffice = Not (VarType(lp) = vbLong)
End Function
This trick I learned from fellow MVP Brent Spaulding
Labels: Access 2010, Access 2013, x64
3 Comments:
Interesting!
Doesn't work for me. It Errs?!
It should work on Access 2010 or 2013...
Post a Comment
<< Home