Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Your program is sick! Shoot it and put it out of its memory.


devel / comp.databases.ms-access / Converting 32-bit to 64-bit

SubjectAuthor
* Converting 32-bit to 64-bitPhilip Herlihy
`* Re: Converting 32-bit to 64-bitKeith Tizzard
 `* Re: Converting 32-bit to 64-bitPhilip Herlihy
  `* Re: Converting 32-bit to 64-bitRon Paii
   `* Re: Converting 32-bit to 64-bitPhilip Herlihy
    `* Re: Converting 32-bit to 64-bitPhilip Herlihy
     `* Re: Converting 32-bit to 64-bitCindy Krist
      `- Re: Converting 32-bit to 64-bitPhilip Herlihy

1
Converting 32-bit to 64-bit

<MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=573&group=comp.databases.ms-access#573

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: PhillipH...@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: comp.databases.ms-access
Subject: Converting 32-bit to 64-bit
Date: Sat, 2 Jul 2022 14:53:19 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="6af8a59b3c546ad32c63d409c77acded";
logging-data="2771263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6WpCdygy+IwJckD/eFKB3sdK2hFF7OW8="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:ymRLka1EmGxjJWLkvVIQhqq8N3s=
 by: Philip Herlihy - Sat, 2 Jul 2022 13:53 UTC

I figure the time is right to move to 64-bit versions of most things, including
my new Office 365 installation.

I have some (crucial!) databases built years ago in Access 2013, which use
linked tables, so it's the "application" part I'm wary of wrecking. I can find
guidance on updating the VBA, but what about forms and reports?

My database has the following References:
Visual Basic For Applications
Microsoft Access 15.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library
Microsoft Windows Common Controls 6.0 (SP6)

Are there equivalents in 64-bit Office 365?

--

Phil, London

Re: Converting 32-bit to 64-bit

<ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=576&group=comp.databases.ms-access#576

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a05:622a:18a9:b0:31d:3c07:9dc6 with SMTP id v41-20020a05622a18a900b0031d3c079dc6mr12031196qtc.638.1656934597268;
Mon, 04 Jul 2022 04:36:37 -0700 (PDT)
X-Received: by 2002:a05:6870:23a3:b0:101:a0da:f478 with SMTP id
e35-20020a05687023a300b00101a0daf478mr17409780oap.181.1656934597029; Mon, 04
Jul 2022 04:36:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Mon, 4 Jul 2022 04:36:36 -0700 (PDT)
In-Reply-To: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>
Injection-Info: google-groups.googlegroups.com; posting-host=92.4.218.77; posting-account=SKIztwgAAAD15rYh-v-27VVmHult5LKY
NNTP-Posting-Host: 92.4.218.77
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com>
Subject: Re: Converting 32-bit to 64-bit
From: internet...@foobox.com (Keith Tizzard)
Injection-Date: Mon, 04 Jul 2022 11:36:37 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 39
 by: Keith Tizzard - Mon, 4 Jul 2022 11:36 UTC

I am not able to provide a full answer although I have progressively updated databases from early versions of Access to Office 365 over a number of years.

One feature that you should be aware of is the use of 32 bit library functions. You will need to add the keyword 'PtrSafe' e.g.

Private Declare PtrSafe Function RegOpenKey Lib "advapi32" Alias "RegOpenKeyA" _
(ByVal hKey As Long, ByVal lpValueName As String, phkResult As Long) As Long

Look at the article:

https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/ptrsafe-keyword

Good luck

On Saturday, 2 July 2022 at 14:53:24 UTC+1, Philip Herlihy wrote:
> I figure the time is right to move to 64-bit versions of most things, including
> my new Office 365 installation.
>
> I have some (crucial!) databases built years ago in Access 2013, which use
> linked tables, so it's the "application" part I'm wary of wrecking. I can find
> guidance on updating the VBA, but what about forms and reports?
>
> My database has the following References:
> Visual Basic For Applications
> Microsoft Access 15.0 Object Library
> OLE Automation
> Microsoft ActiveX Data Objects 2.1 Library
> Microsoft DAO 3.6 Object Library
> Microsoft Windows Common Controls 6.0 (SP6)
>
> Are there equivalents in 64-bit Office 365?
>
>
> --
>
> Phil, London

Re: Converting 32-bit to 64-bit

<MPG.3d2e2a5c49e628079899fe@news.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=577&group=comp.databases.ms-access#577

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: PhillipH...@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: comp.databases.ms-access
Subject: Re: Converting 32-bit to 64-bit
Date: Tue, 5 Jul 2022 12:01:17 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org>
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org> <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="16ba9af2cdc71363bb3fa0077ae8acc2";
logging-data="3877736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WqQ/82KYoms4eeagajMQRvXTMrvvd8Io="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:gZdbxIOAbVwfIsJ5vvc0bryOojw=
 by: Philip Herlihy - Tue, 5 Jul 2022 11:01 UTC

In article <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com>, Keith
Tizzard wrote...
>
> I am not able to provide a full answer although I have progressively updated databases from early versions of Access to Office 365 over a number of years.
>
> One feature that you should be aware of is the use of 32 bit library functions. You will need to add the keyword 'PtrSafe' e.g.
>
> Private Declare PtrSafe Function RegOpenKey Lib "advapi32" Alias "RegOpenKeyA" _
> (ByVal hKey As Long, ByVal lpValueName As String, phkResult As Long) As Long
>
> Look at the article:
>
> https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/ptrsafe-keyword
>
> Good luck
>
>
> On Saturday, 2 July 2022 at 14:53:24 UTC+1, Philip Herlihy wrote:
> > I figure the time is right to move to 64-bit versions of most things, including
> > my new Office 365 installation.
> >
> > I have some (crucial!) databases built years ago in Access 2013, which use
> > linked tables, so it's the "application" part I'm wary of wrecking. I can find
> > guidance on updating the VBA, but what about forms and reports?
> >
....
> >
> >
> >
> > Phil, London

Thanks, Keith. I was just returning here to report on progress. I did find
references to the PtrSafe qualifier in three YouTube videos on the subject
(though the other aspects I was concerned about weren't mentioned).

On a machine with 32-bit Office I copied files to a "Test" folder, and re-
linked them. I installed Office 365 (64-bit) on a new machine, and shared
copies of the files via OneDrive**. Everything just worked on the new machine
(to my surprise). Now, I'm not using any external controls or add-ins, so
there are no "Declare" statements in my code. 64-bit Access seems to have
everything needed for my code out-of-the-box. I still have some testing to do
before I start using it for live data, but it looks good - and has been much
less trouble than expected!

It remains to be seen whether I can work with the same data on machines with
different 'bitness' versions of Access installed, given the database was
developed on a 32-bit machine.

**OneDrive has an annoying habit of creating the local (synchronised) folder
with different %USERNAME%s on each machine despite using an identical Microsoft
Account. On my desktop the %ONEDRIVE% path is C:\Users\xyz_000, giving a
OneDrive path of C:\Users\xyz_000\OneDrive, while on the new machine it's C:
\Users\xyz and c:\Users\xyz\OneDrive respectively. So the linking (via Linked
Table Manager)done on one machine isn't valid for the other. I solved this
with a Junction Point (mklink /J xyz xyz_000) which creates an equivalent path
to the files on the new machine. (Note that OneDrive synchronisation is WAY
too slow to use for sharing a database between users.)

--

Phil, London

Re: Converting 32-bit to 64-bit

<d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=578&group=comp.databases.ms-access#578

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a05:620a:112a:b0:6af:1bb9:fb91 with SMTP id p10-20020a05620a112a00b006af1bb9fb91mr24074737qkk.229.1657046866874;
Tue, 05 Jul 2022 11:47:46 -0700 (PDT)
X-Received: by 2002:a05:6870:5889:b0:10b:bed4:1b09 with SMTP id
be9-20020a056870588900b0010bbed41b09mr14052920oab.49.1657046866579; Tue, 05
Jul 2022 11:47:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Tue, 5 Jul 2022 11:47:46 -0700 (PDT)
In-Reply-To: <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org>
Injection-Info: google-groups.googlegroups.com; posting-host=65.30.79.18; posting-account=RurhpQoAAACBjKrwaxvElRMdPO3AZiPP
NNTP-Posting-Host: 65.30.79.18
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>
<ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com> <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com>
Subject: Re: Converting 32-bit to 64-bit
From: ron81...@gmail.com (Ron Paii)
Injection-Date: Tue, 05 Jul 2022 18:47:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 103
 by: Ron Paii - Tue, 5 Jul 2022 18:47 UTC

On Tuesday, July 5, 2022 at 6:01:22 AM UTC-5, Philip Herlihy wrote:
> In article <ea5bbad3-e707-4ad4...@googlegroups.com>, Keith
> Tizzard wrote...
> >
> > I am not able to provide a full answer although I have progressively updated databases from early versions of Access to Office 365 over a number of years.
> >
> > One feature that you should be aware of is the use of 32 bit library functions. You will need to add the keyword 'PtrSafe' e.g.
> >
> > Private Declare PtrSafe Function RegOpenKey Lib "advapi32" Alias "RegOpenKeyA" _
> > (ByVal hKey As Long, ByVal lpValueName As String, phkResult As Long) As Long
> >
> > Look at the article:
> >
> > https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/ptrsafe-keyword
> >
> > Good luck
> >
> >
> > On Saturday, 2 July 2022 at 14:53:24 UTC+1, Philip Herlihy wrote:
> > > I figure the time is right to move to 64-bit versions of most things, including
> > > my new Office 365 installation.
> > >
> > > I have some (crucial!) databases built years ago in Access 2013, which use
> > > linked tables, so it's the "application" part I'm wary of wrecking. I can find
> > > guidance on updating the VBA, but what about forms and reports?
> > >
> ...
> > >
> > >
> > >
> > > Phil, London
>
> Thanks, Keith. I was just returning here to report on progress. I did find
> references to the PtrSafe qualifier in three YouTube videos on the subject
> (though the other aspects I was concerned about weren't mentioned).
>
> On a machine with 32-bit Office I copied files to a "Test" folder, and re-
> linked them. I installed Office 365 (64-bit) on a new machine, and shared
> copies of the files via OneDrive**. Everything just worked on the new machine
> (to my surprise). Now, I'm not using any external controls or add-ins, so
> there are no "Declare" statements in my code. 64-bit Access seems to have
> everything needed for my code out-of-the-box. I still have some testing to do
> before I start using it for live data, but it looks good - and has been much
> less trouble than expected!
>
> It remains to be seen whether I can work with the same data on machines with
> different 'bitness' versions of Access installed, given the database was
> developed on a 32-bit machine.
>
> **OneDrive has an annoying habit of creating the local (synchronised) folder
> with different %USERNAME%s on each machine despite using an identical Microsoft
> Account. On my desktop the %ONEDRIVE% path is C:\Users\xyz_000, giving a
> OneDrive path of C:\Users\xyz_000\OneDrive, while on the new machine it's C:
> \Users\xyz and c:\Users\xyz\OneDrive respectively. So the linking (via Linked
> Table Manager)done on one machine isn't valid for the other. I solved this
> with a Junction Point (mklink /J xyz xyz_000) which creates an equivalent path
> to the files on the new machine. (Note that OneDrive synchronisation is WAY
> too slow to use for sharing a database between users.)
>
> --
>
> Phil, London

Access normally has no issues between 32bit and 64bit. The problems come from 3rd party controls including Microsoft's standard controls like the tree control. You have already found the issue with PtrSafe. Other Office programs like Excel also may have issues with custom controls in a 64bit install.. The backend database should only be stored on a Microsoft share, not on something like OneDrive; it's file sync is incompatible with a shared database file.

Search "Access database on OneDrive"; one of the 1st hits will be from Microsoft.

IMO, unless you are dealing with very large Word or Excel there is very little reason to use 64bit office.

Re: Converting 32-bit to 64-bit

<MPG.3d2f7b759499ca19899ff@news.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=579&group=comp.databases.ms-access#579

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: PhillipH...@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: comp.databases.ms-access
Subject: Re: Converting 32-bit to 64-bit
Date: Wed, 6 Jul 2022 11:59:37 +0100
Organization: A noiseless patient Spider
Lines: 101
Message-ID: <MPG.3d2f7b759499ca19899ff@news.eternal-september.org>
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org> <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com> <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org> <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="ff75c231548ba12fc9362a94dc29bed4";
logging-data="26817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dQsHMJg+Y99otIW07sYQVn8mGzVVqhS0="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:8C4WazAl5KBd9X5NByNArAOx2ko=
 by: Philip Herlihy - Wed, 6 Jul 2022 10:59 UTC

In article <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com>, Ron Paii
wrote...
>
> On Tuesday, July 5, 2022 at 6:01:22 AM UTC-5, Philip Herlihy wrote:
> > In article <ea5bbad3-e707-4ad4...@googlegroups.com>, Keith
> > Tizzard wrote...
> > >
> > > I am not able to provide a full answer although I have progressively updated databases from early versions of Access to Office 365 over a number of years.
> > >
> > > One feature that you should be aware of is the use of 32 bit library functions. You will need to add the keyword 'PtrSafe' e.g.
> > >
> > > Private Declare PtrSafe Function RegOpenKey Lib "advapi32" Alias "RegOpenKeyA" _
> > > (ByVal hKey As Long, ByVal lpValueName As String, phkResult As Long) As Long
> > >
> > > Look at the article:
> > >
> > > https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/ptrsafe-keyword
> > >
> > > Good luck
> > >
> > >
> > > On Saturday, 2 July 2022 at 14:53:24 UTC+1, Philip Herlihy wrote:
> > > > I figure the time is right to move to 64-bit versions of most things, including
> > > > my new Office 365 installation.
> > > >
> > > > I have some (crucial!) databases built years ago in Access 2013, which use
> > > > linked tables, so it's the "application" part I'm wary of wrecking. I can find
> > > > guidance on updating the VBA, but what about forms and reports?
> > > >
> > ...
> > > >
> > > >
> > > >
> > > > Phil, London
> >
> > Thanks, Keith. I was just returning here to report on progress. I did find
> > references to the PtrSafe qualifier in three YouTube videos on the subject
> > (though the other aspects I was concerned about weren't mentioned).
> >
> > On a machine with 32-bit Office I copied files to a "Test" folder, and re-
> > linked them. I installed Office 365 (64-bit) on a new machine, and shared
> > copies of the files via OneDrive**. Everything just worked on the new machine
> > (to my surprise). Now, I'm not using any external controls or add-ins, so
> > there are no "Declare" statements in my code. 64-bit Access seems to have
> > everything needed for my code out-of-the-box. I still have some testing to do
> > before I start using it for live data, but it looks good - and has been much
> > less trouble than expected!
> >
> > It remains to be seen whether I can work with the same data on machines with
> > different 'bitness' versions of Access installed, given the database was
> > developed on a 32-bit machine.
> >
> > **OneDrive has an annoying habit of creating the local (synchronised) folder
> > with different %USERNAME%s on each machine despite using an identical Microsoft
> > Account. On my desktop the %ONEDRIVE% path is C:\Users\xyz_000, giving a
> > OneDrive path of C:\Users\xyz_000\OneDrive, while on the new machine it's C:
> > \Users\xyz and c:\Users\xyz\OneDrive respectively. So the linking (via Linked
> > Table Manager)done on one machine isn't valid for the other. I solved this
> > with a Junction Point (mklink /J xyz xyz_000) which creates an equivalent path
> > to the files on the new machine. (Note that OneDrive synchronisation is WAY
> > too slow to use for sharing a database between users.)
> >
> > --
> >
> > Phil, London
>
> Access normally has no issues between 32bit and 64bit. The problems come from 3rd party controls including Microsoft's standard controls like the tree control. You have already found the issue with PtrSafe. Other Office programs like Excel also may have issues with custom controls in a 64bit install. The backend database should only be stored on a Microsoft share, not on something like OneDrive; it's file sync
is incompatible with a shared database file.
>
> Search "Access database on OneDrive"; one of the 1st hits will be from Microsoft.
>
> IMO, unless you are dealing with very large Word or Excel there is very little reason to use 64bit office.

Thanks for this; it has certainly been easier than I'd anticipated - I haven't
even needed to use PrtSafe in my code.

You're right to flag the potential problem using Access linking tables via
OneDrive, and I did think it only responsible to include a comment about that
in my post. However, in my situation the database is used only by me, and at
the time of use the linked databases are both in the same local folder. That
folder is synchronised via OneDrive, so when I move to another machine
(typically tablet and desktop) I ensure synchronisation is complete before
launching. That's a far cry from the situation where concurrent users are
linked to the same tables.

I did wonder about whether there would be any point in installing the 64-bit
versions, and did an online search. Microsoft's advice used to be against the
64-bit version unless you knew you needed it (and most don't). But that's
changed, and the "default" installation is now the 64-bit. Actually, it's hard
to know whether a spreadsheet (likeliest thing to hit the 32-bit limit, I
figure) is "large" or not. Generally, I like to go with the flow, and the
trend is clearly towards 64-bit applications.

Hmm. I have one file I've been adding rows to every few days for well over a
decade. So I Googled "excel 32 bit limit" and found the maximum file size is 2
GB. How big is my file? 466KB. The memory limit is 4GB (of course). My
file's working set is under 84KB. So I've a few months grace yet, then...

--

Phil, London

Re: Converting 32-bit to 64-bit

<MPG.3d2f819b81efaaca989a00@news.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=580&group=comp.databases.ms-access#580

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: PhillipH...@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: comp.databases.ms-access
Subject: Re: Converting 32-bit to 64-bit
Date: Wed, 6 Jul 2022 12:25:50 +0100
Organization: A noiseless patient Spider
Lines: 108
Message-ID: <MPG.3d2f819b81efaaca989a00@news.eternal-september.org>
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org> <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com> <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org> <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com> <MPG.3d2f7b759499ca19899ff@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="ff75c231548ba12fc9362a94dc29bed4";
logging-data="26817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uA9nU0uTWr1AgyhwXSR1t+togpdE7JoM="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:m+vi4Kt6Cg5PSsfXH64AP9e3v5I=
 by: Philip Herlihy - Wed, 6 Jul 2022 11:25 UTC

In article <MPG.3d2f7b759499ca19899ff@news.eternal-september.org>, Philip
Herlihy wrote...
>
> In article <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com>, Ron Paii
> wrote...
> >
> > On Tuesday, July 5, 2022 at 6:01:22 AM UTC-5, Philip Herlihy wrote:
> > > In article <ea5bbad3-e707-4ad4...@googlegroups.com>, Keith
> > > Tizzard wrote...
> > > >
> > > > I am not able to provide a full answer although I have progressively updated databases from early versions of Access to Office 365 over a number of years.
> > > >
> > > > One feature that you should be aware of is the use of 32 bit library functions. You will need to add the keyword 'PtrSafe' e.g.
> > > >
> > > > Private Declare PtrSafe Function RegOpenKey Lib "advapi32" Alias "RegOpenKeyA" _
> > > > (ByVal hKey As Long, ByVal lpValueName As String, phkResult As Long) As Long
> > > >
> > > > Look at the article:
> > > >
> > > > https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/ptrsafe-keyword
> > > >
> > > > Good luck
> > > >
> > > >
> > > > On Saturday, 2 July 2022 at 14:53:24 UTC+1, Philip Herlihy wrote:
> > > > > I figure the time is right to move to 64-bit versions of most things, including
> > > > > my new Office 365 installation.
> > > > >
> > > > > I have some (crucial!) databases built years ago in Access 2013, which use
> > > > > linked tables, so it's the "application" part I'm wary of wrecking. I can find
> > > > > guidance on updating the VBA, but what about forms and reports?
> > > > >
> > > ...
> > > > >
> > > > >
> > > > >
> > > > > Phil, London
> > >
> > > Thanks, Keith. I was just returning here to report on progress. I did find
> > > references to the PtrSafe qualifier in three YouTube videos on the subject
> > > (though the other aspects I was concerned about weren't mentioned).
> > >
> > > On a machine with 32-bit Office I copied files to a "Test" folder, and re-
> > > linked them. I installed Office 365 (64-bit) on a new machine, and shared
> > > copies of the files via OneDrive**. Everything just worked on the new machine
> > > (to my surprise). Now, I'm not using any external controls or add-ins, so
> > > there are no "Declare" statements in my code. 64-bit Access seems to have
> > > everything needed for my code out-of-the-box. I still have some testing to do
> > > before I start using it for live data, but it looks good - and has been much
> > > less trouble than expected!
> > >
> > > It remains to be seen whether I can work with the same data on machines with
> > > different 'bitness' versions of Access installed, given the database was
> > > developed on a 32-bit machine.
> > >
> > > **OneDrive has an annoying habit of creating the local (synchronised) folder
> > > with different %USERNAME%s on each machine despite using an identical Microsoft
> > > Account. On my desktop the %ONEDRIVE% path is C:\Users\xyz_000, giving a
> > > OneDrive path of C:\Users\xyz_000\OneDrive, while on the new machine it's C:
> > > \Users\xyz and c:\Users\xyz\OneDrive respectively. So the linking (via Linked
> > > Table Manager)done on one machine isn't valid for the other. I solved this
> > > with a Junction Point (mklink /J xyz xyz_000) which creates an equivalent path
> > > to the files on the new machine. (Note that OneDrive synchronisation is WAY
> > > too slow to use for sharing a database between users.)
> > >
> > > --
> > >
> > > Phil, London
> >
> > Access normally has no issues between 32bit and 64bit. The problems come from 3rd party controls including Microsoft's standard controls like the tree control. You have already found the issue with PtrSafe. Other Office programs like Excel also may have issues with custom controls in a 64bit install. The backend database should only be stored on a Microsoft share, not on something like OneDrive; it's file
sync
> is incompatible with a shared database file.
> >
> > Search "Access database on OneDrive"; one of the 1st hits will be from Microsoft.
> >
> > IMO, unless you are dealing with very large Word or Excel there is very little reason to use 64bit office.
>
> Thanks for this; it has certainly been easier than I'd anticipated - I haven't
> even needed to use PrtSafe in my code.
>
> You're right to flag the potential problem using Access linking tables via
> OneDrive, and I did think it only responsible to include a comment about that
> in my post. However, in my situation the database is used only by me, and at
> the time of use the linked databases are both in the same local folder. That
> folder is synchronised via OneDrive, so when I move to another machine
> (typically tablet and desktop) I ensure synchronisation is complete before
> launching. That's a far cry from the situation where concurrent users are
> linked to the same tables.
>
> I did wonder about whether there would be any point in installing the 64-bit
> versions, and did an online search. Microsoft's advice used to be against the
> 64-bit version unless you knew you needed it (and most don't). But that's
> changed, and the "default" installation is now the 64-bit. Actually, it's hard
> to know whether a spreadsheet (likeliest thing to hit the 32-bit limit, I
> figure) is "large" or not. Generally, I like to go with the flow, and the
> trend is clearly towards 64-bit applications.
>
> Hmm. I have one file I've been adding rows to every few days for well over a
> decade. So I Googled "excel 32 bit limit" and found the maximum file size is 2
> GB. How big is my file? 466KB. The memory limit is 4GB (of course). My
> file's working set is under 84KB. So I've a few months grace yet, then...

For those interested in the topic, here is Microsoft's current advice:
https://bit.ly/3bQd9dC

--

Phil, London

Re: Converting 32-bit to 64-bit

<190139d6-ea63-4c49-aa00-8320a276a2c5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=581&group=comp.databases.ms-access#581

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a05:6214:29c9:b0:472:7104:2b54 with SMTP id gh9-20020a05621429c900b0047271042b54mr35876055qvb.114.1657113635071;
Wed, 06 Jul 2022 06:20:35 -0700 (PDT)
X-Received: by 2002:a05:6870:6312:b0:10b:8ee3:b402 with SMTP id
s18-20020a056870631200b0010b8ee3b402mr23044256oao.60.1657113634770; Wed, 06
Jul 2022 06:20:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Wed, 6 Jul 2022 06:20:34 -0700 (PDT)
In-Reply-To: <MPG.3d2f819b81efaaca989a00@news.eternal-september.org>
Injection-Info: google-groups.googlegroups.com; posting-host=100.0.87.206; posting-account=aD5szwoAAABb__OwpgcFTqRK5TPVKp1O
NNTP-Posting-Host: 100.0.87.206
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org>
<ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com> <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org>
<d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com> <MPG.3d2f7b759499ca19899ff@news.eternal-september.org>
<MPG.3d2f819b81efaaca989a00@news.eternal-september.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <190139d6-ea63-4c49-aa00-8320a276a2c5n@googlegroups.com>
Subject: Re: Converting 32-bit to 64-bit
From: cin...@smbpartners.com (Cindy Krist)
Injection-Date: Wed, 06 Jul 2022 13:20:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: Cindy Krist - Wed, 6 Jul 2022 13:20 UTC

What if your code determines whether you have 32- or 64-bit (https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/64-bit-visual-basic-for-applications-overview )?

#If VBA7 Then
Declare PtrSafe Function...
#Else
Declare Function...
#EndIf

Re: Converting 32-bit to 64-bit

<MPG.3d2fcccd20df7dcc989a04@news.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=582&group=comp.databases.ms-access#582

  copy link   Newsgroups: comp.databases.ms-access
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: PhillipH...@SlashDevNull.invalid (Philip Herlihy)
Newsgroups: comp.databases.ms-access
Subject: Re: Converting 32-bit to 64-bit
Date: Wed, 6 Jul 2022 17:46:40 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <MPG.3d2fcccd20df7dcc989a04@news.eternal-september.org>
References: <MPG.3d2a5e2c2decc0d79899fc@news.eternal-september.org> <ea5bbad3-e707-4ad4-b5b8-0872c693b821n@googlegroups.com> <MPG.3d2e2a5c49e628079899fe@news.eternal-september.org> <d804cb13-1227-4d3f-9013-59a13ae929bcn@googlegroups.com> <MPG.3d2f7b759499ca19899ff@news.eternal-september.org> <MPG.3d2f819b81efaaca989a00@news.eternal-september.org> <190139d6-ea63-4c49-aa00-8320a276a2c5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="ff75c231548ba12fc9362a94dc29bed4";
logging-data="101085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jqMnCWyoAQzRsb7IowedwiIq8J4lUdew="
User-Agent: MicroPlanet-Gravity/3.0.10 (GRC)
Cancel-Lock: sha1:HvM+EE/OHRDuOlAaoL8O9mBtqOI=
 by: Philip Herlihy - Wed, 6 Jul 2022 16:46 UTC

In article <190139d6-ea63-4c49-aa00-8320a276a2c5n@googlegroups.com>, Cindy
Krist wrote...
>
> What if your code determines whether you have 32- or 64-bit (https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/64-bit-visual-basic-for-applications-overview )?
>
> #If VBA7 Then
> Declare PtrSafe Function...
> #Else
> Declare Function...
> #EndIf

Yes, I've seen that - thanks. My own code doesn't bring in any external
components, so doesn't need the Declare statements. If it did, that is
certainly the recommended approach, I understand.

--

Phil, London

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor