Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    I dont have the date they were paid, i am unaware of these..

  2. #17
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    As long as you have the field in the table, the expression will yield one of the two messages since the date field will be null. You will have to populate the bonus paid date eventually.

  3. #18
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    I have entered this and got 'The Expression you entered contains invalid syntax.

    'You may have entered an operator, such as the +operator, in an expression without a corresponding operand.

  4. #19
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You will need to check the spelling of the field/control names as well as the placement of the parentheses. If you want us to take a look at it, you can zip and post your database. Please make sure to alter or remove any sensitive information.

  5. #20
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    =IIf(IsNull( [Employee]![Loyalty Bonus Paid Date] )IIf(DateAdd("d",500 ,[Employment_Date])>Date(),"Bonus is not due to be paid","Bonus is now due to be paid"),Null) That all looks correct but im still getting the error?

  6. #21
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Missing a comma & and a closing parenthesis (shown in red)

    =IIf(IsNull([Employee]![Loyalty Bonus Paid Date]),IIf(DateAdd("d",500 ,[Employment_Date])>Date()),"Bonus is not due to be paid","Bonus is now due to be paid"),Null)

  7. #22
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    NOW i have the wrong number of arguments, god i hate access!

  8. #23
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    Ok i should have it working but whenever i turn back to the report view it asks me for a parameter for Employee!

  9. #24
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Remove [Employee]! from the expression (i.e. just use the field name)

  10. #25
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    new box has come up saying 'Loyalty Bonus Paid Date' with an input box

  11. #26
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    It only works if i leave it blank and click ok, then all the boxs say the bonus is due (which it is). But is there any way to stop that box from appearing ?

  12. #27
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    It is looking for the field. Did you add it to the report's record source?

  13. #28
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    Absolute Legend!

  14. #29
    Hannah287 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    18
    One last quick thing, after i input a date paid will the reminder disappear ?

  15. #30
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Once a date paid is entered for an employee, there should be no message shown in the textbox. You can test it to see if it meets your needs.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums