I have a label on form that I'd like to populate with the result of the query. That query is defined so that it uses the value of another label on the form as criteria. It seems that I've used this method before and it's worked.
The query is based on a Linked SQL table (didn't think that should matter). I nosed around enough to see that the problem could be with field names, so I tried using field name aliases in the query and then referencing those in the label.
Any ideas what is wrong? Values in use are listed below.
thanks....
Label Control Source = "=[qry_frm_job_edit_job_lookup]![Field1]" (Field1 is the alias I'm testing with)
qry_frm_job_edit_job_lookup = "SELECT TCM_JCJob.JobStructureRID AS Field1, TCM_JCJob.JobStructure1 AS Field2, TCM_JCJob.Name AS Field3
FROM TCM_JCJob
WHERE (((TCM_JCJob.JobStructureRID)=[Forms]![frm_job_Edit]![Text_TCM_jobstructureRID]));"