R
richard
Hi I have a form bound to a table tblsales. On the form is a combo box which
pulls information from tblpurchases. This information is then used to
populate unbound text boxes.
One of the values pulled from tblpurchases is from a checkbox control on
another form, so the value stored is -1. This value is not being populated
into the appropriate text box on the form frmsales. I have tried changing the
control on frmsales to a checkbox to see if this was the problem.
The field in tblpurchases is formatted as a number field.
The format of the text box on frmsales is also number.
The code I am using is below
Private Sub stockno_AfterUpdate()
Text34.Value = stockno.Column(1)
Text36.Value = stockno.Column(2)
Text38.Value = stockno.Column(3)
Text40.Value = stockno.Column(4)
Text46.Value = stockno.Column(5)
Text48.Value = stockno.Column(6)
Text54.Value = stockno.Column(7)
End Sub
The query related to the combo box 'stockno' does pull the value correctly.
Has anyone any thoughts as to why this field is not being populated
pulls information from tblpurchases. This information is then used to
populate unbound text boxes.
One of the values pulled from tblpurchases is from a checkbox control on
another form, so the value stored is -1. This value is not being populated
into the appropriate text box on the form frmsales. I have tried changing the
control on frmsales to a checkbox to see if this was the problem.
The field in tblpurchases is formatted as a number field.
The format of the text box on frmsales is also number.
The code I am using is below
Private Sub stockno_AfterUpdate()
Text34.Value = stockno.Column(1)
Text36.Value = stockno.Column(2)
Text38.Value = stockno.Column(3)
Text40.Value = stockno.Column(4)
Text46.Value = stockno.Column(5)
Text48.Value = stockno.Column(6)
Text54.Value = stockno.Column(7)
End Sub
The query related to the combo box 'stockno' does pull the value correctly.
Has anyone any thoughts as to why this field is not being populated