I have a report built on a control source with 3 criteria based on a form. The report will run correctly if the form is not open and each of the criteria is entered when requested. If the form is open I get an empty record. The form name is "Find Skills", all the criteria is present just before the report is called. The SQL statement is as follows:
SELECT [LName] & ", " & [fname] AS Name, ClientSkills.Category, ClientSkills.SubCategory, ClientSkills.id, ClientSkills.Skill, Client.DateOfApp, Client.Phone, Client.Transportaion, Client.Active, System.Company, System.Slogan, System.Logo, System.Address1, [system.city] & ", " & [system.state] & " " & [zip] AS cocity, System.Phone, [category] & "-- " & [subcategory] AS cat
FROM System, Client INNER JOIN ClientSkills ON Client.id = ClientSkills.id
WHERE (((ClientSkills.Category)=[Forms]![Find Skills]![cmboFindCat]) AND ((ClientSkills.SubCategory)=[Forms]![Find Skills]![listFindSubCat]) AND ((ClientSkills.Skill)=[Forms]![Find Skills]![listFindSkills]) AND ((Client.Active)=Yes))
ORDER BY [LName] & ", " & [fname];
Can anyone show me what I should do differently or a better way?
JimRich
SELECT [LName] & ", " & [fname] AS Name, ClientSkills.Category, ClientSkills.SubCategory, ClientSkills.id, ClientSkills.Skill, Client.DateOfApp, Client.Phone, Client.Transportaion, Client.Active, System.Company, System.Slogan, System.Logo, System.Address1, [system.city] & ", " & [system.state] & " " & [zip] AS cocity, System.Phone, [category] & "-- " & [subcategory] AS cat
FROM System, Client INNER JOIN ClientSkills ON Client.id = ClientSkills.id
WHERE (((ClientSkills.Category)=[Forms]![Find Skills]![cmboFindCat]) AND ((ClientSkills.SubCategory)=[Forms]![Find Skills]![listFindSubCat]) AND ((ClientSkills.Skill)=[Forms]![Find Skills]![listFindSkills]) AND ((Client.Active)=Yes))
ORDER BY [LName] & ", " & [fname];
Can anyone show me what I should do differently or a better way?
JimRich