SELECT() using todays date not working

I have two tables - "Visitors" and "Phone No.s".

When someone creates a new entry in Visitors I want to check the number they are entering hasn't already been entered (in Phone No's) that day. 

I'm trying create the list to check against using:
LIST(SELECT(Phone No.s[Number],date(TODAY()) = DATE(Phone No.s[Date])))
but when I test it I'm not getting anything in the list.

TedM_0-1683625922149.png

Phone No.s[Date]

TedM_0-1683626765412.png

 

 

 

Solved Solved
0 5 209
1 ACCEPTED SOLUTION

Self fixed (which is probably the best way!)

TedM_0-1683710405178.png

 

View solution in original post

5 REPLIES 5

Hi,

I'm not sure of your data structure but maybe use a valid_if expression within the Number field of your Visitors table?

not(in([_THISROW].[Number],
select(
Phone No.s[Number],
date([Date])=today()
)
))

Chris

That's what I am doing actually....
But the expression just isn't working ๐Ÿ˜ซ

 

 

NOT(IN([_THIS],SELECT(Phone No.s[Number],TEXT(TODAY(),"DDMMYYYY") = TEXT([Date],"DDMMYYYY"))))

 

Put that into your Valid_If for your [Number] Field on your Form.

 

Thanks @scott192 - didn't need it in the end but your suggestion would have put me on the right track as did @Chris_Jeal 

๐Ÿ‘

Self fixed (which is probably the best way!)

TedM_0-1683710405178.png

 

Top Labels in this Space