Kamis, 07 April 2016

[MS_AccessPros] DLookup question

 

I am trying to do a dlookup on a form and have come to a head and a wall. I have a query Named qryYearsOfService. The query calculates the years of service. But the form gave me a #Name? error so I tried it another way and the next expression gave me an gets a #Error error. I must be missing something so simple here. Any help will be of great assistance to me.

Thank You
Jim Wagner


qryYearsOfService

 SELECT tblInformation.FullName, tblInformation.DOB, DateDiff("yyyy",[tblInformation]![DOB],Now()) AS [Age of Employee], tblInformation.YearsOfServiceDate, DateDiff("yyyy",[tblInformation]![YearsOfServiceDate],Now()) AS [Years Worked], [Age of Employee]+[Years Worked] AS [Employees Years of Service]

FROM tblInformation;

 
On the form I have several text boxes that neither work.  

Text Boxes on form

this onea #Name? error
txtYearsOfServiceTotal

 =DLookUp(["Employees Years of Service"]!["qryYearsOfService"],"FullName = 'Jim Wagner'")

 
This one gets a #Error error
Text369
 
=DLookUp("[Employees Years of Service]","qryYearsOfService","FullName = Jim Wagner") 



 
Jim Wagner

__._,_.___

Posted by: Jim Wagner <luvmymelody@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? The Yahoo Mail app is fast, beautiful and intuitive. Try it today!


.

__,_._,___

Tidak ada komentar:

Posting Komentar