troubleshooting Question

Field is based on Expression & Can't be edited

Avatar of SCS1ST
SCS1ST asked on
Programming Theory
2 Comments1 Solution703 ViewsLast Modified:
I have two combo boxes on a subform.  One pulls the Employees list and the other pulls the EmpClass under 200.  Both of the queries that pull the information is updateabel.  

SELECT     EmployeeNumber, LastName, FirstName FROM  Employees ORDER BY LastName

SELECT Trades.EmpClass AS Class, Trades.TradeName FROM Trades WHERE (((Trades.EmpClass)<200)) ORDER BY Trades.EmpClass;

The subform is based on a query that pulls all the timecard daily from the TimeCardDailRQ Function.  

SELECT     *
FROM         TimeCardDailyRQ() TimeCardDailyRQ
WHERE     (DailyID = 2147458498)

TimeCardDailyRQ Function =
SELECT     TOP 100 PERCENT dbo.TimeCard.DailyID, dbo.TimeCard.EmployeeNo, dbo.Employees.Class, dbo.Employees.EmployeeNumber,
                      dbo.TimeCard.EmpClass, dbo.Employees.LastName + N' ' + dbo.Employees.FirstName AS EmpName, dbo.TimeCard.Job#, dbo.TimeCard.JobHours,
                      dbo.TimeCard.Tokens, dbo.TimeCard.PayCheck, dbo.TimeCard.Perdiem, dbo.TimeCard.RepairsHours, dbo.TimeCard.RigName, dbo.TimeCard.RptDate,
                      dbo.TimeCard.WON, dbo.Employees.LastName
FROM         dbo.Employees INNER JOIN
                      dbo.TimeCard ON dbo.Employees.EmployeeNumber = dbo.TimeCard.EmployeeNo
ORDER BY dbo.Employees.LastName + N' ' + dbo.Employees.FirstName

Everyone of these queries are updateable, so I don't understand where I'm getting the Expression error.  If I pull the subform up alone it's updateable.  However, it's  not updateable when it's attached to the parent form.  

Where to I go from here?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros