背景:
我正在使用 Ms-Access 表单,并且我有一个组合下拉列表,我正在 VBA 中进行编码
问题:
是否可以基于查询进行组合,例如:"SELECT tbl.col1 FROM tbl"
所以你得到一个绑定的下拉列表......
但....
还想在列表中再添加一个...顶部的“未选择” 。
如果有人有想法、提示或建议,请告诉我。
非常感谢!
一些代码:
Me.CboUnallocatedPayments.RowSource = " & _
"SELECT zTempBankCustomerReceipt.TransType, zTempBankCustomerReceipt.Ref, " & _
" zTempBankCustomerReceipt.Details,zTempBankCustomerReceipt.EntryDate, " & _
" zTempBankCustomerReceipt.NetAmt, " & _
" zTempBankCustomerReceipt.PaidStatus " & _
" FROM zTempBankCustomerReceipt UNION " & _
" SELECT 0, "**NOTHING SELECTED**" " & _
" FROM zTempBankCustomerReceipt" & _
" WHERE zTempBankCustomerReceipt.TransType = 'SA' " & _
" AND zTempBankCustomerReceipt.PaidStatus = '0'"