I'm trying to write a very simple program that requires reading some data from MS Access. I'm doing it in Visual Studio C++. Essentially what I need to create is a console application doing this:
cout "Dear customer, please enter your account number";
get account number
...
Some code that reads the balance from an MS Access table based on the entered account number
...
cout "your balance is" + balance + ". Bye";
For the life of me, I can't get the middle part figured out. I'm new to c++ but all other parts of the program are working.
I can go to Server Explorer, and add a connection to the MS Access database. I can see the tables, I can see the data in the tables.
But how do I write some code that gets data from MS Access?
I've found many example codes elsewhere, and one for one, they fail with some missing external link or reference, or undefined variables, and those errors are all way over my head.
I can't find some book or tutorial that walks me through, as a beginner, from knowing almost nothing, to the point of being able to do the above.
Can anyone help with this?
cout "Dear customer, please enter your account number";
get account number
...
Some code that reads the balance from an MS Access table based on the entered account number
...
cout "your balance is" + balance + ". Bye";
For the life of me, I can't get the middle part figured out. I'm new to c++ but all other parts of the program are working.
I can go to Server Explorer, and add a connection to the MS Access database. I can see the tables, I can see the data in the tables.
But how do I write some code that gets data from MS Access?
I've found many example codes elsewhere, and one for one, they fail with some missing external link or reference, or undefined variables, and those errors are all way over my head.
I can't find some book or tutorial that walks me through, as a beginner, from knowing almost nothing, to the point of being able to do the above.
Can anyone help with this?