What is the combobox RowSource when the form opens? Do you use code to modify the RowSource after form opens?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
my sql in row source :
SELECT Q_uniontask.ID, Q_uniontask.Employee Name, Q_uniontask.stardate, Q_uniontask.Enddate FROM Q_uniontask WHERE (((Q_uniontask.Employee Name) Not In (SELECT [Employee Name] FROM [Q_uniontask] WHERE Forms![Task Form]![Startdatefrm] BETWEEN [startdate] AND [Enddate] OR Forms![Task Form]![Enddatefrm] BETWEEN [Startdate] AND [Enddate)));
This is a conditional query. The names won't display because they are alias values and their records are not in the combobox RowSource, therefore the alias values are not available for display. This must be expected when using conditional query. This is a known issue with Continuous and Datasheet forms. Many, many, many discussions on this topic. Also known as cascading or dependent comboboxes. Usually requires VBA code to manage.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.