我有以下問題,我有一個窗體,我創建了一個組合框,用於過濾。我行來源SQL查詢看起來是這樣的:MS Access:SQL查詢「Union All」
SELECT Employee_ComboBox.LastName,Employee_ComboBox.FirstName, Employee_ComboBox.ID,Employee_ComboBox.OperatingEntity,Employee_ComboBox.OrganisationNameFull
FROM Employee_ComboBox
ORDER BY Employee_ComboBox.[ID];
我想補充UNION SELECT "(All)" FROM
讓我得到(全部)在我的combobox.The問題是我不知道如何超過1列到SQL查詢。我想是這樣的:
SELECT Employee_ComboBox.LastName FROM Employee_ComboBox UNION SELECT "(All)" FROM Employee_ComboBox;
這個工作,但是當我嘗試添加其他列我做了什麼wrong..Example:
SELECT Employee_ComboBox.LastName,Employee_ComboBox.FirstName FROM Employee_ComboBox UNION SELECT "(All)" FROM Employee_ComboBox;
我如何能添加所有列和任何想法的(全部)我的Combobox的價值?
BR,
是的,這是我一直在尋找的。謝謝 – adp