Results 1 to 2 of 2
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    converting code to 64bit

    It wasn't till this week that I realized how long I've been ducking this issue...


    Till now, I've simply had everyone uninstall their 64bit Access from office, and download the 32bit runtime version... (admittedly, a patch, but effective)

    It's come time to bite the bullet and convert to 64 bit; add the "what version are you using" code, and all the related caveats

    When this problem first showed up, I was able to find several articles and forums on declarations, long vs. short, and all those necessary things to know / do...
    Today, I'm finding stupid.

    Would someone (please) direct me to the correct aisle in the library stacks?

    big thanks in advance,
    mark

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I think what you're after is declaring your variables in what's called 'late binding' in other words, if for instance you are using MS outlook objects in your code and it's bombing out because you have an outdated reference in your code a late binding would (or should), from what I've read, assume you mean to use whatever reference is the 'current' one on the host PC.

    Example using filesystem object

    Early binding:
    dim fs as FileSystemObject
    set fs = new filesystemobject

    debug.print x.getspecialfolder(0)


    Late binding:
    dim fs
    set fs = createobject("scripting.filesystemobject")

    debug.print x.getspecialfolder(0)

    I don't know if this will solve your problem or not as I only learned the nomenclature for this a few weeks ago! I have done everything with late binding without knowing the proper term just because it was easier for me to get things working the way I wanted.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. converting access 32 bit code to 64 bit
    By markjkubicki in forum Programming
    Replies: 2
    Last Post: 04-01-2014, 08:14 PM
  2. Replies: 3
    Last Post: 05-03-2013, 12:57 AM
  3. Converting SQL to VBA code
    By Davidyam in forum Access
    Replies: 3
    Last Post: 04-18-2012, 10:29 AM
  4. Replies: 5
    Last Post: 01-05-2012, 11:55 AM
  5. Converting a Code to Text
    By rmcafee in forum Programming
    Replies: 7
    Last Post: 09-13-2011, 08:52 PM

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