cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnsonjohn
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

johnsonjohn
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,191)