cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fless1
Advocate I
Advocate I

Null value for Date Variable

setting  varDate=datepicker.selecteddate but want to set varDate to be blank if a tick box "No date required" is selected

 

but set(varDate,"") comes up with "imcompatible type" error

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

Hi @fless1,

check this out https://powerusers.microsoft.com/t5/General-Discussion/Update-blank-Null-value-to-fields-Date-User-C...

it may be the answer you are looking for. If it works, please mark this thread as solved.

View solution in original post

3 REPLIES 3
Drrickryp
Super User II
Super User II

Hi @fless1,

check this out https://powerusers.microsoft.com/t5/General-Discussion/Update-blank-Null-value-to-fields-Date-User-C...

it may be the answer you are looking for. If it works, please mark this thread as solved.

View solution in original post

Thanks loads
cbrazenec
New Member

Instead of "", use Date(Blank(),Blank(),Blank()).  Sets it to null value, but in a date format.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (59,352)