Results 1 to 6 of 6

Thread: Simple DB Editor

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550

    Talking

    What's the quickest and simplest way to make a db editor? I mean, could you use a Data control, link it to your db, then link a grid of some sort (flexgrid type thing) to the data control and do your editing from there? And if so, would the users actions in the grid be automatically entered into the db? I'm talking an access type db here...

    Cheers!!!!!!

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    DB Editor

    What were you thinking of using it for? Small / large program?

    Alex

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Just to maintain a database of probably no more than 30 records with 2 fields to each.

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Take a look at the Visdata sample which comes with VB and use the bits you need.
    Mark
    -------------------

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Wink DB Editor

    If there are only 2 fields, I would just use the Data control and 2 text boxes.

    Apart from this, for slightly larger programs, I would use the datagrid control (from selecting project...references menu).

    Draw the data control onto your form, in the properties window, click into the databasename property & select the database, recordset (ie a table), and recordsource (ie - the name of the table) from there.


    After that, you can set the datagrid's datasource as the same name as the data control and use either ADO or DAO to alter the tables etc.

    Hope this helps!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Guest
    If you are planning to use a grid to display your Data and allow users to edit, use a DBGrid instead of the FlexGrid. And yes, the users editing of the data will be automatically saved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width