an idea how to view the contents of table(in Ms access) using c++...

In MSVC 6.0 (and probably similar stuff in newer versions), choose new/projects/MFC AppWizzard(exe)

With the single and multi-document options you get a page saying "what database support would you like to include?" There's a "Data Source" button, and from there you can pick MS Access.

That gives you the framework to start accessing what you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.