So I started a new job, and have inherited an absolutely atrocious collection of databases tied to several access front ends. While attempting to create a testing server, I've run into an issue with the front ends. The previous developer created some access forms tied to tables and views within SQL Server 2008 r2. I'm trying to figure out why I cannot edit any of the values in any of the fields (text, combo boxes, lists, etc).
The View that the form is tied to is:
AuditQueries_UserTableForSelectionForms
The view looks similar to:
SELECT TableForFormFields_1.FormSelectionID, TableForFormFields_1.JobPlan, TableForFormFields_1.Floor, TableForFormFields_1.Location, TableForFormFields_1.CHSR#, TableForFormFields_1.PanelName,
TableForFormFields_1.PanelLetter, TableForFormFields_1.PanelCircuit, TableForFormFields_1.StartDate, TableForFormFields_1.EndDate, TableForFormFields_1.MigrationDate, TableForFormFields_1.JTag,
TableForFormFields_1.MinBusRow, TableForFormFields_1.MaxBusRow, TableForFormFields_1.PlanID, TableForFormFields_1.Equip, TableForFormFields_1.CabinetJTag,
Shared_Tables.dbo.username.[User]
FROM Audit.TableForFormFields AS TableForFormFields_1 INNER JOIN
Shared_Tables.dbo.username ON TableForFormFields_1.FormSelectionID = Shared_Tables.dbo.username.[User]
TableFormFields is a table containing the default values for all the fields across the various forms, and it changes based on the logged in user. The logged in user is detected using the following view:
SELECT CASE LEFT(SYSTEM_USER, 11) WHEN 'LIGHTHOUSE\' THEN SYSTEM_USER ELSE 'Webuser' END AS [User]
I have Googled the error, and all the documentation I've found doesn't seem very pertinent. There are other forms in the database tied to Tables that appear to work, and if I change the data source of the form to:
SELECT * FROM TableForFormFields AS TableForFormFields_1
Everything works as required. However, this diverges from the production environment, and I need to keep them the same, or at least as close as possible. Any ideas?