Hi, i am looking for some help in regards to writing a query based on date and time values.
I currently have 2 tables with different data and the only thing that matches between the two tables is the agents_id.
Within Table 1 I have a Job Start and Job Finish Date and TimeStamp and within Table 2 I have a logdate and a separate logtime field. What I am trying to do is find the matches for all agents for logtimes that fall between the Job Start and Job Finish Fields and at present I have written the following:
but when I try to run this I get an expression error (the expression you entered has a function containing the wrong number of arguments)
Any ideas? If somebody could please advise, would really appreciate it.
Thanks in advance.
I currently have 2 tables with different data and the only thing that matches between the two tables is the agents_id.
Within Table 1 I have a Job Start and Job Finish Date and TimeStamp and within Table 2 I have a logdate and a separate logtime field. What I am trying to do is find the matches for all agents for logtimes that fall between the Job Start and Job Finish Fields and at present I have written the following:
Code:
=IIf([LogTime] Between [JOB_STARTED] And [JOB_FINISH])
but when I try to run this I get an expression error (the expression you entered has a function containing the wrong number of arguments)
Any ideas? If somebody could please advise, would really appreciate it.
Thanks in advance.