Web Page Design and Hosting

January 31, 2007

tempDataSet = contactDS.GetChanges(DataRowState.Deleted) Open the connection to the

Filed under: professional development with web apis — webmaster @ 11:35 am

tempDataSet = contactDS.GetChanges(DataRowState.Deleted) Open the connection to the Access databaseConn.Open() Update the Access database with the DataAdapter used to create the datasetcontactDA.Update(tempDataSet, Contacts ) close the connectionConn.Close() Exit Subhandleerror: If Conn.State = ConnectionState.Open Then Conn.Close() MsgBox( An error occured in UpdateDatabaseDeletions: & Err.Number & - _ & Err.Description) Exit SubEnd Sub25.Add the following UpdateDatasetValuesprocedure to the form. This procedure is responsiblefor updating the local dataset with the values on the form. This procedure allows changes madeby the user to be updated in the local dataset for later saving to the Access database. Sub UpdateDataSetValues() On Error GoTo handleerror update the dataset with the current values on the form contactDS.Tables( Contacts ).Rows(intCurRecord)( LastName ) = txtLName.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( FirstName ) = _ txtFName.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( MiddleName ) = _ txtMName.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( Title ) = txtTitle.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( Company ) = _ txtCompany.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( Address1 ) = _ txtAddress1.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( Address2 ) = _ txtAddress2.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( City ) = txtCity.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( Region ) = txtRegion.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( PostalCode ) = _ txtPostalCode.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( WorkPhone ) = _ txtWorkPhone.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( HomePhone ) = _ txtHomePhone.TextcontactDS.Tables( Contacts ).Rows(intCurRecord)( CellPhone ) = _ txtCellPhone.Text250Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Inexpensive Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting