jamiesuperman420
Registered User.
- Local time
- Yesterday, 21:29
- Joined
- Nov 20, 2008
- Messages
- 43
Hello!! I have a database for a property maintenance company... There's a combo box called "Freq" (for Frequencies - of which there are 13 different ones), a field called "Total Fee" (how much we're billing the client) and another called "Monthly Total Avg" (it's a hidden field, important for other pages in the database).
This is displayed on a datasheet.
For the Monthly Total Avg, if Freq is 1X/YR then I need Total Fee to be divided by 12 to get the monthly average.
I tried doing this in a module, but with limited experience I couldn't get it working properly. I can't do it with an iif statement because it's too long (there are 1X/YR, 6X/YR, 1X/MO, etc, etc)...
Also, I need the data for some queries (not sure if that makes a difference or not - thankfully I know how to make queries). I tried using an expression to give [Monthly Total Avg] a value after Frequency is updated, but it updated ALL of the records on the sheet, not just the one I changed the frequency for.
Any help would be greatly appreciated!! Thank you!!
This is displayed on a datasheet.
For the Monthly Total Avg, if Freq is 1X/YR then I need Total Fee to be divided by 12 to get the monthly average.
I tried doing this in a module, but with limited experience I couldn't get it working properly. I can't do it with an iif statement because it's too long (there are 1X/YR, 6X/YR, 1X/MO, etc, etc)...
Also, I need the data for some queries (not sure if that makes a difference or not - thankfully I know how to make queries). I tried using an expression to give [Monthly Total Avg] a value after Frequency is updated, but it updated ALL of the records on the sheet, not just the one I changed the frequency for.
Any help would be greatly appreciated!! Thank you!!