Hallo ich bin es mal wieder. ich habe folgenden code und problem mit der data Combobox.
Sub comboKundeFuellen()
Dim rs As ADODB.Recordset
Dim sql As String
Me.comboKunde.Text = "Kunde"
sql = "Select * from kunde order by ku_name"
Set rs = db_recordset(cn, sql)
Set Me.comboKunde.RowSource = rs
Me.comboKunde.ListField = "KU_name"
Me.comboKunde.BoundColumn = "ku_nr"
End Sub
ich möchte aber auch den vornamen mit in das listfield nehmen. wie muß ich das anstellen?
Sub comboKundeFuellen()
Dim rs As ADODB.Recordset
Dim sql As String
Me.comboKunde.Text = "Kunde"
sql = "Select * from kunde order by ku_name"
Set rs = db_recordset(cn, sql)
Set Me.comboKunde.RowSource = rs
Me.comboKunde.ListField = "KU_name"
Me.comboKunde.BoundColumn = "ku_nr"
End Sub
ich möchte aber auch den vornamen mit in das listfield nehmen. wie muß ich das anstellen?