I am in Chapter 7. I have entered all from pages 147 to 151. When I try to "add" a record, I get the following message: "Cast from string "" to type byte is not valid". The error occurs when the following code is executed:
objData.AddParameter("@SequenceNumber", OleDb.OleDbType.UnsignedTinyInt, 1, CType(txtSequenceNumber.Text, byte))
I also tried the sample code provided by this site and got the same message. I tried changing the "byte" to "integer" and that did not work (of course it wouldn't, would it? Since Sequence number is set up in Access as byte.)
I am working with VB
.net 2003 and Access 2002 on XP Pro. Does anyone have any idea of how to correct this?