Solved

Working with Date/Time

Posted on 2006-06-17
5
244 Views
Last Modified: 2013-12-18
Hello experts

I have two fields
ScheduledDaysAll - Date/Time, Computed, I'm doing a dblookup here to get multiple Dates from other documents. (e.g. 08/03/2006, 08/04/2006, 08/05/2006)

StartDate - Date/Time, @If(@IsMember(StartDate;@TextToTime(ScheduledDaysAll));@Failure("An existing modules is covering this day !");@Success)

When I select any date in StartDate, I get this message.. 'Incorrect data type for operator or @function: Text expected'

I'm trying to prevent users to select those dates/days which are already exists in ScheduledDaysAll
0
Comment
Question by:ninteen83
5 Comments
 
LVL 37

Expert Comment

by:Harisha M G
Comment Utility
Hi, you are passing a date-time value to the functin @TextToTime(), which expects a string to be its parameter

http://www-12.lotus.com/ldd/doc/domino_notes/Rnext/help6_designer.nsf/f4b82fbb75e942a6852566ac0037f284/9ef4e6e6732021f885256c54004c1363?OpenDocument

---
Harish
0
 

Author Comment

by:ninteen83
Comment Utility
Hi Harish

I've tried it without texttotime, but I get the same error

@If(@IsMember(StartDate;ScheduledDaysAll);@Failure("An existing modules is covering this day !");@Success)
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 100 total points
Comment Utility
Try @Text(date) around both instead.

Steve
0
 
LVL 18

Assisted Solution

by:marilyng
marilyng earned 50 total points
Comment Utility
You're getting the error on the lookup function, it needs to return text for the @Contains or @IsMember to work

Try this:
TextValue:=@If(EnterDate="";"";@Text(enterdate;"D0S0"));
ChkList:=@If(chkdate="";"";@Text(chkdate;"D0S0"));
@If(TextValue=""|ChkList="";@Return("");"");
Result:=@If(@Contains(ChkList;TextValue);"Is Member";"Not a Member");
@If(@IsError(Result);"Error";Result)

The dblookup:
List:=@DbColumn("":"";@DbName;"LookupDates";1);
@If(@IsError(List)|List="";"";@Unique(@Text(List;"D0S0")))
0
 
LVL 18

Expert Comment

by:marilyng
Comment Utility
I'm sorry, did we not answer your question correctly?  I created a test environment before I posted?!  Could you tell us why the grade is a B?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now