First things first. What is the bitness of the newly installed MS Office 2021, 32 bit or 64 bit?
The libraries you mention would have been fine for 32 bit, but if you now run them in 64 bit, they probably won't be.
That can be remedied, if that is the case.
Next thing, you mention one error (by code only, without the error message, which can be very helpful so we don't have to go look it up). But there are "countless error messages". What are they, by error code and accompanying error message? That detail is almost always highly useful in helping someone help you.
But, given the scenario, I'm guessing there is a good chance the problem is bitness, so let's rule that in or out first.
Thank you.
Thanks for your speedy reply.
Win 10 64-bit operating system, x64-based processor. MS Office Ver 2402 64-bit
Access LTSC MSO (Ver 2402) 64-bit.
Error msg:
"Compile error: The code in this project must be updated for use on 64-bit systems.
Please review and update Declare ststements and then mark them with the PtrState attribute."
"The Visual Basic module contains a syntax error.
Check the code, and then recompile it."
Returns ERR: 7960
VBE shows:
I was guessing it was more likely to be with the platform level, having started on 16 bit, advanced to 32 bit and now having 64 bit OS & apps.
I must admit I designed this dB 20+ years ago when Access was in its infancy and MS aquired Ashton-Tate, due to their highly successful search engine.
My dB basically stores all the details (Catalogue number, Matrix code, Label name, Artist, Track names, Release dates, Deletion Dates, Acquisition Dates, Notes, etc: for in excess of several thousand 7" vinyl 45s'. One issue I had was not normalising the dB correctly, therefore having numerous relationships to link the various tables. The GUI works well, when it does! and I was happy with the outcome, an easy to read and search by artist, label and title.
You might ask why I did all this? I used Excel a lot and mastered VBA from its inception in Excel Ver5. Transposing that knowledge into Access was reasonably easy, as objects, methods & properties are a common feature of MS apps.
I can see that Access is trying to get me to look at the code in the VBE, but I'm somewhat reluctant to tamper with the code I don't yet understand fully.
Again many thanks.
Roger.
******************************************************
@GroverParkGeorge
Thanks for the vids. It seems that pre-stating the Declare statements with PtrSafe and re-compiling the dB has worked.
The dB is clearly antique now, but its data content was years of work at the British Library, here in London UK.
Old gramaphone companies printed catalogues going back eons was the major source of data.
Clearly I need to normalise better the dB and your colleagues on here also suggest an update to the dB's format to the current .accdb format.
The original concept was to store data by record label name, each label having a seperate table containing fields thus:- Catalogue number, an Artist iD (lists of artists stored in a separate table), 'A' side title, 'B' side title, 'A' side duration, 'B' side duration, + other relevant fields of data.
This has worked well but I realised a long way into the design that I ought to have had another table for the track titles so they could be stored once and not multiple times if more than one artist sang the same title! Consequently, with multiple Forms, one for each Label, there is quite a bit of duplication in the data stored in the dB. The Relatonships looks like a major railway station layout!!
Another issue that has occured, due to MS developments in their Office Suite, is the replacement of Toolbars with a Ribbon, which does not appear to be exposed as an object in the VBE and hence no methods or properties that can be set programaticaly.
I'd be happy to forward the dB as is, if you have the time to review my work and offer any suggestions.
One option I woukld consider is creating a new empty dB in the current format, and then importing the data held in the various tables, as well as the Forms, Reports and Queries. Is that a simple and feasable way forward?
Roger Marson
*** Email address is removed for privacy ***
**************************************************