figment222
New Member
- Joined
- Mar 6, 2015
- Messages
- 48
Hello, I have been all over the web and keep seeing the same examples on how to do this, but for some reason, I can't get it work for me.
I have a form called "frm_Metals_JobDetails" it is bound to a query called: qry_MetalsJobsActive
There is one textbox on the form that I want pull data from another query called: qry_MetalsJobs_ItemStats. The field I want is called: ItemsCompleted
I made sure that qry_MetalsJobs_ItemStats has a field called: JobNum, which is the one that will have a matching value to a textbox on the form called: "TRC #"
Everybody says to use the DLookUp function in the control source for my textbox. Everybody pretty much uses the same format, so I don't know what I'm doing wrong. Here's what I have so far, via the expression builder:
=DLookUp("ItemsCompleted","qry_MetalsJobs_ItemStats","JobNum=" & [Forms]![frm_Metals_JobDetails]![TRC #])
I've also tried it with or without brackets. Any ideas?
I have a form called "frm_Metals_JobDetails" it is bound to a query called: qry_MetalsJobsActive
There is one textbox on the form that I want pull data from another query called: qry_MetalsJobs_ItemStats. The field I want is called: ItemsCompleted
I made sure that qry_MetalsJobs_ItemStats has a field called: JobNum, which is the one that will have a matching value to a textbox on the form called: "TRC #"
Everybody says to use the DLookUp function in the control source for my textbox. Everybody pretty much uses the same format, so I don't know what I'm doing wrong. Here's what I have so far, via the expression builder:
=DLookUp("ItemsCompleted","qry_MetalsJobs_ItemStats","JobNum=" & [Forms]![frm_Metals_JobDetails]![TRC #])
I've also tried it with or without brackets. Any ideas?