K
K
killman2022-04-19 22:56:15
C++ / C#
killman, 2022-04-19 22:56:15

I'm trying to connect the access database to visual studio 2022, but I get an error, how to fix it?

I'm trying to connect ms access db to visual studio 2022 but keep getting error "microsoft.jet.oledb.4.0 provider cannot be used in visual studio as it's 32 bit only"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Morrowind, 2022-04-19
@killman

Hey!
Perhaps the problem lies in the bitness of MS Access.
Open in MS Access: File -> Account -> About Access -> information about the program will appear, where its bit depth is indicated .
If 32 is indicated, then you need to demolish the office and install x64.
625f190608feb399889574.png
Second Option - compiler settings for building x86 solution. Found a hint
here . And here is the manual for setting up VS Studio 2022 to run on the desired platform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question