Recent content by Teri Bridges

  1. T

    Solved Field Values on Form

    I hope this is a simple question. I have two fields - DueIn (Number) and Approved (Date). What I need is if the user enters an approved date the DueIn field returns the value of zero after the update. The DueIn field is initially derived from a target date after the update, which is the...
  2. T

    Moving a record from one table to another one using the button feature

    Wait I think I answered my question. If I use a date field as to when the record was archived then in my query I say is null any associated records will not display. Like DUH! I know don't over think it.
  3. T

    Moving a record from one table to another one using the button feature

    I am faced with a similar situation. There are times when a course may be archived. I have a checkbox for the user to select if the course needs to be archived. Is there a way to deactivate all related records when the course archive checkbox is selected? For example, the course may have three...
  4. T

    Solved VBA Function and SQL

    Execllent! Thanks
  5. T

    Solved VBA Function and SQL

    I am back. Just when I think I a figuring something out....Nope not a clue! I have a temp query I created to get my SQL statement. I want to total the lesson duration for each course to determine my course Hours. The sum of lessons (lesson total) is related to the catalog ID. Currently using...
  6. T

    Solved VBA Function

    I am going to leave the code as is. It is working. I thank you for all your advice but I don't want to go and bother you by creating errors. I value your time more than wasting it.
  7. T

    Solved VBA Function

    Yes, I had only shown the first function in the original post. It is highlighted because it failed and when I clicked debug, it highlighted that row. This function counts all the events by Module. It is working as I had it written. I don't want to confuse things and be a bother. Being new to...
  8. T

    Solved VBA Function

    Now That I understand. Thank you. LOL :)
  9. T

    Solved VBA Function

  10. T

    Solved VBA Function

    I have three functions CountEvents, CountAllEvents, Cduration The third function Cduration, is one I am still working on. I am trying to sum the lesson duration total to get the overall course duration. 'Used for Course Report to count the total events at the Module Level Function...
  11. T

    Solved VBA Function

    Sorry Edgar. I do not understand. I am new and learning. I have bought courses on line and been watching tutorials. I am attempting to learn what is a good practice and what is not. The code I posted was my first attempt at using SQL in VBA. Although I received the correct expected result I was...
  12. T

    Solved VBA Function

    I tried this but received the following error:
  13. T

    Solved VBA Function

    Sorry forget that code. Below is the correct code: Function CntAllEvents() As Integer Dim SQL As String Dim dbs As Database, rst As Recordset SQL = "SELECT Count(Events_tbl.EventID) AS [Event Count] " & _ "FROM (ListModule_tbl INNER JOIN ((Course_tbl...
  14. T

    Solved VBA Function

    I have written a function that counts my events using an SQL statement. I did this by watching various codes being written and putting it together. I would like advice on whether I have written the code to best practice. The code does work and gives the correct results. 'Used for Course Report...
  15. T

    Main Report Footer from Sub Report

    I read an article that said I could put a query in my report footer to get the count accurate. Is this a good practice?
Top Bottom