Hello. I am using vb 2005 express w/ sql server 2005.
I have a form with a combobox that lists several entry codes as well as the description of the entry code.
Example:
E1 - Original Entry
E2 - Re-Entry into School
etc...
All I would like to store in the DB is the first 2 characters (E1, E2, etc).
I have tried the following:
Dim entrycode As String
If ComboBox1.Text = "E1 - Original Entry" Then
entrycode = "E1"
ElseIf ComboBox1.Text = "E2 - Re-Entry into School" Then
entrycode = "E2"
End If
Me.LEADSDataSet.student_master.stu_entrycodeColumn = entrycode
but i keep getting the following error :
property stu_entrycodeColumn is read only
not sure where to go from here.
I have a form with a combobox that lists several entry codes as well as the description of the entry code.
Example:
E1 - Original Entry
E2 - Re-Entry into School
etc...
All I would like to store in the DB is the first 2 characters (E1, E2, etc).
I have tried the following:
Dim entrycode As String
If ComboBox1.Text = "E1 - Original Entry" Then
entrycode = "E1"
ElseIf ComboBox1.Text = "E2 - Re-Entry into School" Then
entrycode = "E2"
End If
Me.LEADSDataSet.student_master.stu_entrycodeColumn = entrycode
but i keep getting the following error :
property stu_entrycodeColumn is read only
not sure where to go from here.