Hello everyone. I've recieved wonderful help last time when i turned to this forum, now i have another problem and hoping you will help a beginner again.
I have a table with containers. Each container has an arrival date. I am trying to make a function using DateDiff to calculate the difference between the arrival date and todays date to implement further action.
If the difference is > 31 (month) one calculation follows
If the difference is <31 (month) another calculation follows
I've tried,for now,wihtout any calculations, simply to retrieve the difference from the table, but so far without any luck.
Is this the correct statement to use? And what are the options of outputing all the DateDiff values so i could make the "if >31 or <31" statements ?
Thank you in advance.
Best regards, Eugene.
I have a table with containers. Each container has an arrival date. I am trying to make a function using DateDiff to calculate the difference between the arrival date and todays date to implement further action.
If the difference is > 31 (month) one calculation follows
If the difference is <31 (month) another calculation follows
I've tried,for now,wihtout any calculations, simply to retrieve the difference from the table, but so far without any luck.
Code:
Dim qSQL As String
qSQL = "SELECT DateDiff('d',[Depot In Date], Now()) FROM tblContLife "
Is this the correct statement to use? And what are the options of outputing all the DateDiff values so i could make the "if >31 or <31" statements ?
Thank you in advance.
Best regards, Eugene.