Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with viewing my database

Status
Not open for further replies.

kg9ie

Technical User
Jun 3, 2000
18
0
0
US
I have an Access database, and I'd like to be able to view one of the tables in a data grid format like the standard presentation in Access.

I want to be able to add records to the bottom of the grid as well. Another requirement would be the ability to scroll when the grid gets too long.

How can I accomplish this?

Thanks,
Todd
 
You will need to
1. Have the access database as an ODBC datasource
2. Use CDatabase to gain access to it
3a. POSSIBLY use CRecordset to interact easier
3b. Use ExecuteSQL and avoid CRecorset entierly.


If you are just beginning, I would suggest using CRecordset. keep in mind it can be a bit buggy. You can insert a new MFC class and derrive it from CRecordset, select the database source and it will configure itself.

See if this can get you started.

matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top