Search results

  1. D

    Last Friday in Each Month

    I have googled this and cannot find a solution. Does anyone have a function which returns the date of the last Friday in a month. Appreciate your assistance. Thanks
  2. D

    Calculate DateDiff Between 2 records in same table/query

    Arnellgp and All Firstly, apologies for my tardy reply. We have experienced major flooding and power outages for the past week and have only just got back on line! I have imported my own data into the table in your latest example and all works really well. Over the 11 years of data that I...
  3. D

    Calculate DateDiff Between 2 records in same table/query

    Thanks for your response. This is a graphic of what I am trying to do.
  4. D

    Calculate DateDiff Between 2 records in same table/query

    Thanks for your reply. Perhaps I didn't explain this properly. I am not looking to find elapsed time between the entry of records. What I am looking to do is determine the number of days between the occurrence of each event. This is a table which records daily rainfall and I am trying to...
  5. D

    Calculate DateDiff Between 2 records in same table/query

    I could use a report if that is easier but I am not sure what the functionality is that you refer to. Thanks
  6. D

    Calculate DateDiff Between 2 records in same table/query

    Ultimately, the data will appear on a form. Would that work also?
  7. D

    Calculate DateDiff Between 2 records in same table/query

    Hi All I am trying to calculate the elapsed time between 2 records in the same table. I have a table which records rainfall data per day. Obviously, not all days are recorded. I need to know the number of days between 2 rain records so basically this is the elapsed time between the latest...
  8. D

    Switch Function in Query Expression

    Thanks both for your responses. Both of which will work as I need it. I was not aware of the choose function. This is far simpler than what I was attempting. Again, many thanks
  9. D

    Switch Function in Query Expression

    Hi All I am trying to use the switch function in a query. The function I have created is: YTDBud: Switch(Month(Date())=1,[sumofJan]),(Month(Date()) =2,[sumofJan]+[SumofFeb] Where SumofJan and SumofFeb are fields in the query. YTDBud: Switch(Month(Date())=1 returns the correct value for...
  10. D

    Dsum Syntax Issue

    Sorry. My mistake. It is an error in the query design which is returning a null. Apologies for troubling you.
  11. D

    Dsum Syntax Issue

    The calculation is returning the zero result from the NZ rather than the total I am looking for from the query.
  12. D

    Dsum Syntax Issue

    Hi Folks Could someone kindly help me with the syntax for the following? AccLYJan = Nz(DSum("SumofAmount", "QryExpensesSumByMonthYear", "ExpMonth = 'Jan' And ExpType = 'Accounting'"), 0) Both criteria are strings and I just cannot get it right! Many thanks
  13. D

    Record does not exist yet

    Hi All I have a budget application which includes two tables, Budget and Actual Data. There are various expense categories which are captured by month. The issue I have is on the form that displays Actual expenses V's Budget Expenses per month where the actual expenses have not been incurred...
  14. D

    Apply variables to function

    Thank you so much for that. Perfect!
  15. D

    Apply variables to function

    Hi I am developing a budget model. In one area there are 3 alternative approaches to calculating budget income for the year. It is one of these options that has me stumped. It works on a calculation of income per day (all days are the same) x the number of working days in each month. I found...
  16. D

    Refresh form after update of multiple fields

    Thanks for that. Works perfectly and a lot easier then coding each field!!
  17. D

    Refresh form after update of multiple fields

    Sorry Pat Bad choice of words in my question. My table is structured exactly as you state. I am just looking to see if there is a "Universal" refresh option after any field is updated. Thanks
  18. D

    Refresh form after update of multiple fields

    Hi I have a continuous form which creates an income budget based on 12 fields - Jan thru Dec. Each month is totaled in the form footer. The fields can be edited. Is there a way to refresh the totals after any field is changed rather than having to put code in the after update event of each...
  19. D

    Dsum Syntax Help

    Thanks arnelgp Perfect for what I needed!
  20. D

    Dsum Syntax Help

    Hi all I have a Dsum calculation as follows: JanCofAct = Nz(DSum("[CostIncGST]", "QryStockOutThisYearForBudget", "[Grp] = 'Coffee' and MonthName = 'Jan'"), 0) I need to add a year criteria where MyYear (as an integer) is derived from a user input box when the form loads. So what I am trying...
Back
Top Bottom