cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter Based On Datafileld(Date) value and Sql date field

I want to check before inserting a row into SQL if there is an existing entry on the particular date. Date1 is a datefield value in form and Date2 is the date fetched from SQL. IF entry exist on particular date navigate to error screen .

 

LookUp('[dbo].[FNE_ATTENDANCE_WF_TRANS]',attendance_date=DataCardValue7.SelectedDate,attendance_date)

 

attendance_date --> SQL , But its not returning values

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filter Based On Datafileld(Date) value and Sql date field

Hi @johnsonjohn,

Can you share a bit more about your issue?

Can you show me column type of attendance_date ?

 

The reason of this issue should be that the format of the date in the SQL  does not match with the DatePick property.

 

Please make sure that the format of the date in the SQL is the same as which of  DatePick control .

 

Regards,

Eason

 

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Filter Based On Datafileld(Date) value and Sql date field

Hi @johnsonjohn,

Can you share a bit more about your issue?

Can you show me column type of attendance_date ?

 

The reason of this issue should be that the format of the date in the SQL  does not match with the DatePick property.

 

Please make sure that the format of the date in the SQL is the same as which of  DatePick control .

 

Regards,

Eason

 

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper I
Helper I

Re: Filter Based On Datafileld(Date) value and Sql date field

I explicitly converted both the dates and it's working now,

Thanks for your reply

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,597)