Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2006-04-07
3
Medium Priority
?
1,146 Views
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?
0
Comment
Question by:carled
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
leonstryker earned 500 total points
ID: 16400134
>Doing a quick & simple VB 6 app that uses a form done by the data form wizard using ADO connection to SQL server.

Sigh.

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.

Leon
0
 
LVL 1

Author Comment

by:carled
ID: 16400167
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... ;-)

0
 
LVL 29

Expert Comment

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

Leon
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

572 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