VB 6.0 datagrid of detail record in master/detail form - adding new row issue

Posted on 2006-04-07
Last Modified: 2013-12-25
Doing a quick & simple VB 6 app that uses a form done by the data form wizard using ADO connection to SQL server.  All works fine and I can add new rows...

It's just that when I click on the new row box of the data grid and add data, when I've finished entering the data on the row.. the only way I seem to be able to commit the row to the database is by using the master recordset navigation controls at the bottom of the form, stepping to previous record.  This appears to update the database, but is a bit clumsy.  Is there any way of having an "update" button for the detail record (it's a child recordset of a shaped recordset) alone?
Question by:carled
    LVL 29

    Accepted Solution

    >Doing a quick & simple VB 6 app that uses a form done by the data form wizard using ADO connection to SQL server.


    One of the reasons that VB (and M$) got a bad rep in the development world is because its applications are a bit too easy to sitdown and start doing something.  My advice to you is this, if this is functionality not absolutly needed and you can live with things as is, then do so.  On the other hand, if you want to do things right, get rid of this thing, build your own form and use ADO to connect to your database and populate your control.  This would allow you all the control and functionality you need.

    LVL 1

    Author Comment

    Thought that might be the case...  Already settled on this as I needed it doing quickly!

    Points to you for having the chutzpah for saying it though... ;-)

    LVL 29

    Expert Comment

    Thanks for the grade and if you have any issue with doing it this way, you know where to ask,


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Hidden and protected sheets 12 48
    Problem to delete range 4 45
    DO Loop not working 4 52
    Visual Basic Excel Formatting error 4 47
    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now