cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 57 members 3,588 guests
Recent signins:
Please welcome our newest community members: