473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

If statement help

Very green at livecycle. I have been trying to figure this out for too long now. Please help.

Employee_5X is a dropdown of employee names
Employee_5X_Start is a dropdown of start times
Employee_5X_End is a dropdown of end times
Employee_5X_Lunch is a dropdown of lunch deduction times
Employee_5X_Total is the calculated total number of hours worked for the day.

If Employee_5X is blank, i want Employee_5X_Total to show 0 or be blank as well. Here is one of the ways i have tried to do it. I have tried java as well, but I am loosing my hair.

Expand|Select|Wrap|Line Numbers
  1. if (Employee_5X.isNull)then
  2. Employee_5X_Total ==0
  3. else
  4. sum (-Employee_5X_Start.rawValue + Employee_5X_End.rawValue + (-Employee_5X_Lunch) + 12)
  5. endif
  6.  
Any help is appreciated
Feb 14 '12 #1
1 1110
The "=="is a comparator not an assignment operator. The "=="is used in a case where your comparing such as (if x == y). Try this:
Expand|Select|Wrap|Line Numbers
  1. Employee_5X_Total =0
  2.  
Feb 17 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: soni29 | last post by:
hi, i have a small question regarding sql, there are two tables that i need to work with on this, one has fields like: Table1: (id, name, street, city, zip, phone, fax, etc...) about 20 more...
2
by: Little PussyCat | last post by:
Hello, I hope you can help me. We have a SQL Server 2000 database at work, (which works with a VB6 frontend) which grew to a considerable size, so one of my past colleagues sent me this...
9
by: Peter | last post by:
My problem is the last bit of coding below, the like statement does not work. what I have is a product options field and in it is stored characters i.e. "avcy" etc what the query does is...
11
by: Scott C. Reynolds | last post by:
In VB6 you could do a SELECT CASE that would evaluate each case for truth and execute those statements, such as: SELECT CASE True case x > y: dosomestuff() case x = 5: dosomestuff() case y >...
2
by: NathanV | last post by:
I need some help with a SQL statement (SQL Server 2k). I have three tables, an Artists table which holds user info, a Types table which holds the TypeID and Description for different types (I.e....
3
by: igendreau | last post by:
I am writing a query that uses a switch statement. Here's my statement: Region: Switch(="PA" Or ="DE","PennDel",="NY" Or ="NJ","Atlantic") Basically I have a new field named "Region". If...
3
by: samearle | last post by:
Help me write this for MS access, I'm used to Oracle - SELECT Users.*, group_1, group_2, group_3 from (select UserInGroup.UserID, max(decode(GroupID, 1, GroupID, null)) as group_1,
3
by: schoultzy | last post by:
Hello everyone, I am working with the following code: select section_master.trm_cde, section_master.crs_cde, crs_title, crs_capacity, crs_enrollment, section_master.udef_3a_1, monday,...
0
by: feeblemind | last post by:
Hi everyone, I am having problem/troubles with creating an sql inline statement for our application. How do I create a statement/query that selects list of servers with defined date ranges, but...
3
by: erik6408 | last post by:
I am trying to use the IIF statement to look for a null value. That seems to be working fine.. The problem occurs when I use a LIKE Statement inside the IIF statement. Here are some examples:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.