r/VisualStudio • u/DukeBannon • Apr 30 '22
Visual Studio 22 Visual Studio 2022 and Access Database
I am a hobbyist programmer trying to create an application in either Visual Basic or Visual COBOL that uses a Microsoft Access database and I need your help. I'm using Microsoft Visual Studio Community 2022 (64-bit) and Microsoft® Access® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20218) 64-bit and even though I am able to successfully test the connection (see photo) the Data Sources window produces an error (see photo) and I haven't figured out how to get past it. The third photo contains the best information I have found so far but I would rather not back level VS and I cannot find the 64 bit Access Database Engine. Besides, Access is 64 bit and wouldn't it have installed the 64 bit engine?
Anyway, I could use your help and suggestions on how to remedy this issue so I can get on with my programming. Thanks.



1
u/NO_SPACE_B4_COMMA May 01 '22
Why not use c# and a real sql database? Access is a huge pain.
1
u/DukeBannon May 01 '22
Thanks for engaging in the conversation.
Ages ago I enjoyed programming as a profession and a hobby and now that I’m retired I’d like to dust off some of the programming brain cells and re-experience the languages I enjoyed 30+ years ago which happen to be COBOL, PASCAL, and Basic. I know there are many newer choices but this project is more for nostalgia than practicality. I do plan to use the application though so I am looking for a database that works well with the aforementioned products that doesn’t require a server service running which really narrows my DBMS choices. All I’ve found are Access (Jet) and SQLite. I own Access as part of my Office 365 subscription and it’s a complete package (I.e., DBMS with a large number of data types, administration, reporting, etc.) there’s also plenty of resources, including manuals, available for it. I would never though use it in a multi-user high transaction environment. SQLite on the other hand, is a very popular solution although the DBMS doesn’t appear to be as robust and the user needs to assemble the complete package rather than getting it all at once. I am absolutely open to using another embedded single user DBMS if I’ve overlooked one.
Thanks again.
2
u/NO_SPACE_B4_COMMA May 02 '22
I used Access long ago, so I'm not sure I can help there. I think you're good on the embedded DBMS. Personally, I'd pick SQLite since it's the most compatible with just about every language and is used everywhere.
But either way, your issue is definitely 64/32 bit related. I haven't touched Access in ages, so I'm not sure how you can fix that.
The best idea I can give you is to make sure you are using the 64 Bit version of ODBC Manager and from what I can find, you also need to use ACE instead of JET: https://stackoverflow.com/questions/14401729/difference-between-microsoft-jet-oledb-and-microsoft-ace-oledb
If that doesn't help, I recommend posting over on StackOverflow - people respond fast and are really helpful!
Good luck, hope you can fix it!
1
2
u/JohnnyKeyboard Software Engineer May 01 '22
https://www.microsoft.com/en-us/download/details.aspx?id=54920 Microsoft Access Database Engine 2016 Redistributable
If you want to run ACE along side a 32bit install you need to read this article, it's not from MS but a partner https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-install-64-bit-Microsoft-Database-Drivers-alongside-32-bit-Microsoft-Office.html
However this will not solve the Data Sources issue, if you want to use this feature you will need to use VS2019. Also there is a good chance that the Data Sources window may not even get fully supported.
1
Apr 30 '22
You neglected to add pictures. I'll save this and come back to it later to see if I can help once we've got pictures.
1
u/realjoeydood May 01 '22
Normally you make an odbc connection to an access db and take it from there. Done it a million billion times since way back in the 90s if memory serves me right.
2
u/JonnyRocks Apr 30 '22
wow, i had no idea there was a visual COBOL. however, you havent posted any pictures.