Jump to content
  • 0

Compare dates in a SELECT query


BrianI

Question

Hi

I am trying to compare a datetime in a table to a datetime on a form using a select query in a calculated field. I have the below but it is not working...

 

CASE
WHEN
(SELECT COUNT(*) FROM ns_tbl_interviews WHERE interviewer_fk = target.[@field:interviewer_fk] AND date >=  target.[@field:date])> 0
THEN
'Time is blocked'
END

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...