cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnsonjohn
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
v-sheyu-msft
Community Support
Community Support

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
v-sheyu-msft
Community Support
Community Support

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

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

Thanks for your reply

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,748)