p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Beginning Visual Basic 2012 (http://p2p.wrox.com/beginning-visual-basic-2012-699/)
-   -   Chapter 16 Database Programming with SQL Server and ADO.Net (http://p2p.wrox.com/beginning-visual-basic-2012/94230-chapter-16-database-programming-sql-server-ado-net.html)

rgrayson99 March 3rd, 2015 09:16 AM

Chapter 16 Database Programming with SQL Server and ADO.Net
 
I am working through Beginning Visual Basic 2012 (ISBN 978-10118-31181-3 54499). In Chapter 16 pages 555 thru 557, both the printed code and the downloaded code provided for Adding, Updating and Deleting Records throw a common error - "Option Strict On Disallows Late Binding on the following statements:
Adding Records
' Parameter for the au_id column..
objCommand.Parameters.AddWithValue
("@au_id",("@au_id"), BindingContext(objDataView).Current("au_id"))

Updating Records
' Parameter for the title_id field..
objCommand.Parameters.AddWithValue _
("@title_id", BindingContext(objDataView).Current("title_id"))

Deleting Records
' Parameter for the title_id field..
objCommand.Parameters.AddWithValue _
("@title_id", BindingContext(objDataView).Current("title_id"))

I want to keep the Strict On setting. How do I change the code to accommodate?

paulmobotech May 12th, 2016 02:39 AM

error in database connection
 
hi rgrayson99, please can i get the pubs database code for authors, titleauthor and titles table from you. thank you i will be very grateful and i am anticipating..[:)]


All times are GMT -4. The time now is 08:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.