Recent content by Raddy

  1. R

    (yet another) Dcount problem

    Thanks James Don't be hard on yourself - you got me out of a hole How many hours have you spent over a problem which has baffled you then when you find it you could kick yourself really hard ( a missing apostrophe, or a line of code commented out that you didn't spot). I spent a lot of time...
  2. R

    (yet another) Dcount problem

    Still get the same error If DCount("*", "TblPupils", "[Parent/Guardian ID] = " & Forms!FrmPupils!ParentGuardianID & " AND [Child_ID] = " &Forms!Frm.Pupils!ChildID & ") > 0 Then I must say, looking at the brackets and quotations it now makes sense (I am from an iSeries background). This one has...
  3. R

    (yet another) Dcount problem

    Thanks again James I'll try that It currently reads If DCount("*", "TblPupils", "[Parent/Guardian ID] =" & Forms!FrmPupils!ParentGuardianID & " AND [Child_ID] =" &Forms!Frm.Pupils!ChildID & ")" << Compile error "Expected list seperator or )" >>
  4. R

    (yet another) Dcount problem

    James Still getting a syntax is there any way to look at the actual string generated by the VB line?
  5. R

    (yet another) Dcount problem

    James That looks a lot clearer - however I'm getting a syntax error Any ideas?
  6. R

    (yet another) Dcount problem

    I am using a form (FrmPupils) to update a Pupils table. I am checking the table to prevent duplicate entries (ParentGuardianID and ChildID). I am checking using 2 fields, both are integers I am using Dcount I have tried and changed and chopped and looked everywhere and I have nowhere left to...
  7. R

    List of properties and their functions

    I am trying to achieve a handy list that tells me what each property does
  8. R

    List of properties and their functions

    Does anyone know where you can get a definitive list of properties and their functions relating to forms, reports and fields?
  9. R

    Form validation sweep

    Thanks I can design database in my sleep, since that is my main skill. It is just implementing the user interface that is tricky. Most input will be cross-tab'ed to preserve integrity. It usually is when the users are setting up static (as opposed to transactional) data that the problems arise...
  10. R

    Form validation sweep

    Thanks for that too missingling I am new to VBA - I need to go and lie down - and reread my books
  11. R

    Form validation sweep

    JANR many thanks - it works! I added a "Cancel= "true" This keeps the cursor on the offending field. I guess I will have to code similar validation for all the fields? thanks again
  12. R

    Form validation sweep

    I have a piece of code to validate that a client doesn't already exist on a table when the user wants to add. Private Sub ParentGuardianIDX_AfterUpdate() If DCount("*", "TblGuardian", "[ParentGuardianID] = ParentGuardianIDX") > 0 Then MsgBox "Guardian already exists on Guardian File!"...
  13. R

    Exit form - no update

    Mstef Thanks You can see how green I am with all this Access/Vba stuff
  14. R

    Exit form - no update

    MStef Thanks for that. I hop you will bear with me, but how do i exit this form to get your message "Are you sure you want to save this changes?" displayed. I think I am missing something Thanks
  15. R

    Exit form - no update

    I have a control in my form that says Exit, to return to a calling menu form. I have a macro attached to this which states: "Close, ,prompt" If I have changed the data the control returns to the menu, and any changes I have made remain How can I set up some code so Exit means "exit - no update"?
Back
Top Bottom