I am using MS VB 2008 Express Edition

I have a form that allows users to put details in various text boxes associated with a database. The form has the usual VB tool bar buttons such as add new, Save and so on. What I want is that when the form is opened it automatically starts wih a new record so that the user does not need to know that he or she has to click on New. The load instructions currently are:

Private Sub SafeRecords_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'SafeBoxDataSetIdentityType.tblIdentityType' table.
'TODO: This line of code loads data into the 'SafeBoxDataSet.tblSafe' table.
'TODO: This line of code loads data into the 'SafeBoxDataSet.tblAdditionalSafeInfo' table.

End Sub


Can anyone give me the code to start a new record when the form is loaded please


I am surprised that noone can help on this question as I am sure to those who are more skilled than a newbie like me must know how to open a form and allow the user to put a new record in without clicking the New Record button. It would be really useful if someone could help.

This article has been dead for over six months. Start a new discussion instead.