Dim sbillno As String
sbillno = "SELECT [bill2].[autonumber] " & _
"FROM bill2 " & _
"WHERE [CustomerID] = " & Me.search.Value
Me.Billno.RowSource = sbillno
Me.Billno.Requery
i am using this code but there is problem of data type mismatch.
i have 2 combo box .
i want when customer id is select than the other combo box "sbillno" will select the record against the id
autonumber is a autonumber field and customer id is a text field.
i am facing the problem data type mismatch any body can help me.
sbillno = "SELECT [bill2].[autonumber] " & _
"FROM bill2 " & _
"WHERE [CustomerID] = " & Me.search.Value
Me.Billno.RowSource = sbillno
Me.Billno.Requery
i am using this code but there is problem of data type mismatch.
i have 2 combo box .
i want when customer id is select than the other combo box "sbillno" will select the record against the id
autonumber is a autonumber field and customer id is a text field.
i am facing the problem data type mismatch any body can help me.