How to automatically generate monthly fees and using date to update a control on form

ijaz1976

Registered User.
Local time
Today, 13:57
Joined
Jan 30, 2011
Messages
28
hello
i have a database which stores records about students it has a form named "fee voucher"
form has following fields:
--------------------------------------
student name
father name
class
issue date
due date
monthly fee
annual fund
registration charges
van charges
security fee
others
arrears
total
late fee fine
Grand total
-------------------------------------
now i want that on 11th of every month if fee is not submitted "late fee fine" field automatically get a value of Rs100 and if fee is not submitted till 15th of every month field value become doubled (Rs200) before 11th the value should be Rs0. i searched on google but did find any answer to my question. i have posted here a thread containing this and all questions before but no luck now i m asking only one problem from that thread.
(sorry for not posting link because my posts are only 5 till now
any help will be highly appreciated.
thanks in advance
 
In the Control Source of late fee fine textbox:
Code:
=IIF(Nz([[COLOR=Red]Monthly Fee[/COLOR]], 0) = 0, IIF(Day([[COLOR=Red]Due Date[/COLOR]]) > 14, "Rs200", IIF(Day([[COLOR=Red]Due Date[/COLOR]]) > 10, "Rs100", Null)))
Amend the red bits where necessary.
 
thanks you very much i will try and then tell you the results.
 
it is working fine but without Rs if i include Rs sign in expression the grand total field indicates error now problem is how i include currency sign in this expression because this is a currency field.
 
Change the FORMAT property of the textbox to Currency.
 
If the format is Currency then remove Rs and it should work.
 
it is working fine but without Rs if i include Rs sign in expression the grand total field indicates error now problem is how i include currency sign in this expression because this is a currency field.

thanks for your response
i already stated above that it is working without "Rs" sign but i want to include "Rs" sign because of currency field.
 
This is what the Currency format does. What sign does the Currency format add to it at the moment?
 
you can see it yourself when it do not match criteria then it shows "Rs 0.00" but when it meets the criteria it only shows "100.00" or "200.00" without "Rs" sign.
 

Attachments

It just needed to be a number instead of string. Here you go:
Code:
=IIf(Day([DueDate])>14,200,IIf(Day([DueDate])>10,100,0))
By the way, I noticed you took out the first part of the formula.
 
thank you very very much Mr vbainet now its working fine. :D

By the way, I noticed you took out the first part of the formula.


what do you meant by that i think this part of formula is enough for my needs do you suggest something else. :confused:
 

Users who are viewing this thread

Back
Top Bottom