PDA

Click to See Complete Forum and Search --> : access tables


j_lyver
Sep 24th, 1999, 12:35 AM
What i want to do is to put an acess table right on the form in visual basic. Any suggestions

SmithVoice
Sep 24th, 1999, 01:38 AM
technically you can not put a "table" on a form because a table object is not a visible "control", a table is a database object and even when you are in "table View" in a database system like MS-Access or dBase you are not really seeing "the table", you are seeing a grid that is filled with the contents of a table.

I think what you want to do is use a *grid control*, such as MSFlex, DBGrid (or a real one likeVSFlexPro6 www.videosoft.com (http://www.videosoft.com) or TrueBGrid www.apezsc.com) (http://www.apezsc.com))

You drop the grid on the form, set it's properties (and/or bind it to a datasource via a datacontrol for DAO or directly to a recordset object in ADO ... or directly to an ary if you use VSFlexPro6) and the contents of a table or filter/view/recordset are displayed with optional editing permissions.



------------------
http://www.smithvoice.com/vbfun.htm

JHausmann
Sep 24th, 1999, 02:17 AM
I don't usually disagree with SmithVoice but you should be able to accomplish what you want via COM/Automation. Much the same way you can have Excel draw a chart on your VB app...

Just don't ask me to explain how... :P