Good day,
I'm stupmed on this one, hope someone can help. I am attemptin to use Form entrees as Variables for my SQL FROM and WHERE clause. For some reason the SQL does not accept variables. Looks too simple but I guess it isn't.
Form has:TrainingType, TableName, Date, EmpName
My sql looks like:
SELECT [Forms]!
![txtTable].[EmpID], [Forms]!
![txtTable].[TrngID], [Forms]!
![txtTable].[Data]
FROM [Forms]!{Table]![txtTable]
WHERE (((tblQA.EmpID)=Forms!Table!txtName) And ((tblQA.TrngID)=Forms!Table!txtTrngType) And ((tblQA.Data)=Forms!Table!txtDate));
Thanks
I'm stupmed on this one, hope someone can help. I am attemptin to use Form entrees as Variables for my SQL FROM and WHERE clause. For some reason the SQL does not accept variables. Looks too simple but I guess it isn't.
Form has:TrainingType, TableName, Date, EmpName
My sql looks like:
SELECT [Forms]!
FROM [Forms]!{Table]![txtTable]
WHERE (((tblQA.EmpID)=Forms!Table!txtName) And ((tblQA.TrngID)=Forms!Table!txtTrngType) And ((tblQA.Data)=Forms!Table!txtDate));
Thanks