Thanks a lot! Your method works.
i was struggeling with access SQl to get it working. It is a bit different compared to MySQL
After a while I gave up and tried the Access gui method. (Create relation)
In the end it worked and when I looked for the SQL code it was like this:
SELECT Contacts.ID, Contacts.Company, Contacts.[Last Name], Contacts.[First Name], Contacts.[E-mail Address], Contacts.AppointmentDate, Contacts.ApplicationDate, Contacts.TotaalTijd, Contacts.[Job Title], Contacts.[Business Phone], Contacts.Address, Contacts.City, Contacts.[Country/Region], Contacts.[Web Page], Contacts.Notes, Contacts.Attachments, Contacts.Motivatie,
SollData_query.TotalDays, SollData_query.EndDate
FROM Contacts
INNER JOIN SollData_query ON Contacts.ID = SollData_query.ID;
After that it was just a matter of adapting the record source of the form to the new created 'Contacts_query'
And voila, I could simply choose TotalDate and EndDate in the record sources in the fields of my form.
Thanks for leading me to the answer
There is one more question I like to ask.
I like to add one more field in the form to give the date when an application is closed.
Now I have the total days an application is running in the field TotalDays.
I also like to have a full date of which the application is closed.
To have this I tried to alter the calculation query to something like this:
SELECT
ID, ApplicationDate, Company, [Job Title], RejectionDate,
IIf(IsNull(RejectionDate), DateDiff("d",ApplicationDate,Date()),Null) AS TotalDays,
DateDiff("d",ApplicationDate,RejectionDate) AS TotalDaysComplete,
IIf(IsNotNull(RejectionDate), Date() AS EndDate
FROM Contacts;
But i am not handy with IsNull or and IsNotNull.
The idea was to have another boolean to write the system date in EndDate only when
the RejectionDate has a Date. But it doesn't work. Give a syntax error for the '
IIf(IsNotNull(RejectionDate), Date() AS EndDate' part.
You are handy with access SQL.
How can I do a second boolean with the IIf.....structure in the same SQL line?