Recent content by NTF73

  1. N

    Search a specific filed in a subform Recordset

    Can't beleive I spent so much time on it when the solution ended up being so simple! Think I need to take five (weeks off work!)
  2. N

    Search a specific filed in a subform Recordset

    Thanks for that George. I set Min([ProcessDate]) in the footer of the subform and put a hidden text box on the main form just like you said. I kept the on timer event but changed it to If Me.txtMinDate <= Date - 90 Then cmdProcess.Enabled = True Else cmdProcess.Enabled = False End If...
  3. N

    Search a specific filed in a subform Recordset

    Not sure the On Current event is what i should be looking at. When the subform is queried, the current record will be record 1 If the process date does not match the first record returned in the subform, but the second or third records do, will the command button be enabled or disabled using...
  4. N

    Search a specific filed in a subform Recordset

    I get runtime error 438 when I open the form using this method Object doesn't support this property or method
  5. N

    Search a specific filed in a subform Recordset

    I'm sure this is an easy one but I can't find help anywhere. Maybe i'm using the wrong termonology! All I want to do is display a command button in a main form if a date field in the subform is <= Date() - 90. I've managed to do this by doing the following: Private Sub Form_Timer() If...
  6. N

    DSum Function When Lookup filed is a Value List in Table Design

    This on works "ToPay=No AND Method= ""Cheque"" AND DateUpdated=Forms!ReportDates!txtFrom"), 0) Thanks dkinley!
  7. N

    DSum Function When Lookup filed is a Value List in Table Design

    Nearly There! I don't get the error now but the value returns Null
  8. N

    DSum Function When Lookup filed is a Value List in Table Design

    Hello! I am trying to report on a payment table by payment method ie 'Cash' and 'Cheque'. In the Table Design I have a text field called 'Method' which is a Value List. I have created a module with the following function: Public Function ClassCash() As Currency Dim cClass As Currency cClass...
  9. N

    Pass Combo Box and Option Values using Insert Query

    Think I was going about it all wrong! Chaned my Code to: Private Sub cmdUpdateAttend_Click() If Me.frAttendance.Value = 1 Then DoCmd.RunSQL "INSERT INTO Absent (DancerID, ClassID)" & _ " Values (Forms!Attend!DancerID, Forms!Attend!ClassID);" End If If Me.frAttendance.Value = 2...
  10. N

    Pass Combo Box and Option Values using Insert Query

    OK - I changed all the names of the variables prefixed with i=integer, s=string etc. Now when I click update, I am prompted to enter values for all fileds. Why is this?
  11. N

    Pass Combo Box and Option Values using Insert Query

    Hi, I'm really new to this in fact this is my fist attempt at VBA code! I have a Form to keep track of Dance Students attendance. ClassID (Bound txtBox) DancerID (Bound Combo) Price (Bound txtBox) Option1 Absent Option2 ToPay Option3 Paid Method (unbound Combo Value List of Cash & Cheque)...
  12. N

    Capture Data in at least 1 of 3 fields

    Genius! Much Appriciated.
  13. N

    Capture Data in at least 1 of 3 fields

    Its a bound form
  14. N

    Capture Data in at least 1 of 3 fields

    Thanks mlai, any idea what code to use? Thanks
  15. N

    Capture Data in at least 1 of 3 fields

    Would that only work if the form was closed after the record was entered? or can you enter multiple records. Any help with the code :)
Back
Top Bottom