0
如何隔開這個字符串,使其格式化爲名稱之間的空格?空間SQL字符串VBA
像這樣 詹姆斯·馬歇爾
在讀取JamesMarshall此刻
Public Function PopulateContactCmb(CompanyValue As Integer)
With Forms!MainForm!cmbContactList
.RowSource = "SELECT Contacts.ID, FirstName " + " & LastName AS FullName FROM Contacts WHERE CompanyID = " & CompanyValue & ";"
.ColumnCount = 4
.BoundColumn = 1
.ColumnWidths = "0in.;2in.;2in.;"
末隨着
加號(+)通常不是一個好concatentator。 'null +「text」= null',而'null&「text」=「text」' – Fionnuala 2014-08-31 23:16:17