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
Interesting!
ReplyDeleteDoesn't work for me. It Errs?!
ReplyDeleteIt should work on Access 2010 or 2013...
ReplyDelete