First time posting - but have learned a lot from this forum in the past... a lot of talent out there!
My DB entry is built around a single form that has specific behaviors. I feed it different SQLs to allow the user to access the different sections of the db. It has worked great until now... I cannot figure out how to generate an SQL line that allows data entry when the join is on a derived quantity.
I have a function JD which calculates a value based on an entry in a table. I have another table which I want to link to that calculated value. I thought the right method was to create a separate query - QLineTime - with the calculated value:
SELECT Lines.ID, JD([Lines]![Line]) AS JD FROM Lines;
Then perform my joins using the query:
SELECT DISTINCTROW MBESCalibration.* FROM (MBESCalibration LEFT JOIN QLineTime ON MBESCalibration.JD = QLineTime.JD) LEFT JOIN Lines ON QLineTime.ID = Lines.ID;
It displays exactly what I want to see - but I cannot do data entry with that SQL. I suspect it is because of the use of the interim query, but do not know how to do the join in one line.
How do I fix this??? Is it even possible (seems like it should be)?
BayouC
My DB entry is built around a single form that has specific behaviors. I feed it different SQLs to allow the user to access the different sections of the db. It has worked great until now... I cannot figure out how to generate an SQL line that allows data entry when the join is on a derived quantity.
I have a function JD which calculates a value based on an entry in a table. I have another table which I want to link to that calculated value. I thought the right method was to create a separate query - QLineTime - with the calculated value:
SELECT Lines.ID, JD([Lines]![Line]) AS JD FROM Lines;
Then perform my joins using the query:
SELECT DISTINCTROW MBESCalibration.* FROM (MBESCalibration LEFT JOIN QLineTime ON MBESCalibration.JD = QLineTime.JD) LEFT JOIN Lines ON QLineTime.ID = Lines.ID;
It displays exactly what I want to see - but I cannot do data entry with that SQL. I suspect it is because of the use of the interim query, but do not know how to do the join in one line.
How do I fix this??? Is it even possible (seems like it should be)?
BayouC