A family of Microsoft relational database management systems designed for ease of use.
and.... I have solved the issue! Had to change the query to this form to be based ONLY on the one table.
...still working on getting the Company Name (which is listed only in the Company table) to show up somewhere--trying for the header right now--just so the user knows what company they are looking at the employees of rather than just a number......
AND a way to have the "Company Name" field to "auto enter" on the form so a user cannot enter anything that would mess up the table
Well, as I said back on July 19:
"Your query is causing problems - as we've said repeatedly - because it joins two tables. You're not USING any of the SimplePlanBusinesses fields in the form - so JUST LEAVE OUT THE OTHER TABLE!!! "
Others of us said it too. Sometimes we actually mean what we post...!!!!!
And to display the company name on the Subform (which with a well designed form shouldn't be needed, as it would already be visible on the Mainform), you can change the Textbox showing the CompanyID from a Textbox to a Combo Box. The combo box's properties would resemble:
ControlSource - CompanyID
RowSource - SELECT Companies.CompanyID, Companies.CompanyName FROM Companies ORDER BY CompanyName;
ColumnCount - 2
ColumnWidths - 0";2"
Enabled - No (This will keep the user from inappropriately changing the company on the subform)
Locked - Yes (this will also keep the user from changing but will turn off the "greyed out" look)
If the Master Link Field and Child Link Field properties of the Subform are correct (CompanyID) then it will indeed "auto enter" the CompanyID from the mainform into new records on the subform, and will correctly display that company. It's builtin to the Subform mechanism; you don't need any code or fancy shenanigans to get it to do this!