Hello. I am using the following code to insert values from textboxes to an sql database:
cmdInsert.Parameters.Add( "@cigbook", SqlDbType.Money ).Value = txtcigbook.Text
How do I modify this to allow null values? I get an error when I try to submit the form if all the fields are not filled out. I am using Visual Studio .NET. Thanks.
cmdInsert.Parameters.Add( "@cigbook", SqlDbType.Money ).Value = txtcigbook.Text
How do I modify this to allow null values? I get an error when I try to submit the form if all the fields are not filled out. I am using Visual Studio .NET. Thanks.