G
Guest
Here is the code
Private Sub Form_Close()
MsgBox (Me.Subform1_Sel.Value)
MsgBox (Me.Subform1_Sel_Field.Value)
Me.Subform1_Sel_Field.Value = "IPA"
End Sub
On my form I have a field called Subform1_Sel_Field. Its control source is
Subform1_Sel. The form's record source is called Proj_Cat (a table)
Three questions, of which the last is most important:
1. 1st msgbox when executes shows a value (let's say CPI), where exactly is
this value coming from, the table or the form?
2. same question
3. 3rd line give me a run-time error 2448, cannot assign a value to this
object. This is driving me crazy since the msgbox actually displays the
current value (let's say CPI) and I just want to change the value in the
table before closing the form.
Thanks..
Private Sub Form_Close()
MsgBox (Me.Subform1_Sel.Value)
MsgBox (Me.Subform1_Sel_Field.Value)
Me.Subform1_Sel_Field.Value = "IPA"
End Sub
On my form I have a field called Subform1_Sel_Field. Its control source is
Subform1_Sel. The form's record source is called Proj_Cat (a table)
Three questions, of which the last is most important:
1. 1st msgbox when executes shows a value (let's say CPI), where exactly is
this value coming from, the table or the form?
2. same question
3. 3rd line give me a run-time error 2448, cannot assign a value to this
object. This is driving me crazy since the msgbox actually displays the
current value (let's say CPI) and I just want to change the value in the
table before closing the form.
Thanks..