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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,131)