moke123
AWF VIP
- Local time
- Yesterday, 19:16
- Joined
- Jan 11, 2013
- Messages
- 4,889
Name is a reserved word and should not be used as a field name.
try removing the rowsource of the list and set it in the after update of the combo. set your column count and column widths as appropriate.
try removing the rowsource of the list and set it in the after update of the combo. set your column count and column widths as appropriate.
Code:
Private Sub Combo2_AfterUpdate()
Dim strSql As String
strSql = "SELECT ID, txtName, [CVN] & ' - ' & [SNV] AS FullInfo FROM AllData WHERE txtName = """ & [Forms]![Form1]![Combo2] & """ ORDER BY txtName;"
Debug.Print strSql
Me.List11.RowSource = strSql
End Sub