A form has a combo box where the user can pick entries from a table; it also gives the opportunity to add to the control's row source table.
The code for the row source is:
Code:
SELECT tbeInstallationNotes_EOS.PrintNoteYN, tbeInstallationNotes_EOS.InstallationNote_ID, tbeInstallationNotes_EOS.InstallationNoteTitle
FROM tbeInstallationNotes_EOS
ORDER BY tbeInstallationNotes_EOS.[InstallationNote_ID]
UNION Select FALSE, 999, "< ADD A NEW NOTE TO THE END OF THE SCHEDULE >"
FROM [tbeInstallationNotes_EOS]
ORDER BY tbeInstallationNotes_EOS.[InstallationNoteTitle];
If the row source table is empty (and that is a real possibility), I want " < ADD A NEW NOTE TO THE END OF THE SCHEDULE > " to still be an option.
(selection this opens a form that allows the user to add a record to the that table and a record the references it the control source table; however, when the row source table is empty, the control does not function at all.
My work around is to check if a record exists (in the row source table), and if not, then a command button is visible in lieu of the combo box, which when clicked, opens the same form as "< ADD A NEW NOTE TO THE END OF THE SCHEDULE >" would....
This seems to be a clunky way of handling this; is there better away?
with thanks in advance,
m.