Search results

  1. R

    Form Validation aka Am I cracking up

    The closest I've ot is by moving the me.updatedby into the beforeupdate and having a boolean that doesn't do the update if set to false so I have for 2 subs Private Sub cboStartTaxCategory_Click() Dim rs As DAO.Recordset updateme = True If Not IsNull(Me.cboStartTaxCategory) Then...
  2. R

    Form Validation aka Am I cracking up

    LOL I thought I was going mad there as when I first read your unedited post in the email you didn't have the PS in and then when I downloaded your file I didn't even look at the text so didn't even realise you'd edited it and didn't see the PS again! I couldn't work out why the DB was...
  3. R

    Form Validation aka Am I cracking up

    Finally managed to load. Hope you're still around theDBGuy!!
  4. R

    Form Validation aka Am I cracking up

    I spoke to soon. The form I gave you is quite simple! In my first post I mentioned "I do have a slight problem as I have a combo box which allows me to jump to a specific record but I'll post about that later.". The combo box I refer to is in the form header. If you blank out the description and...
  5. R

    Error handling

    OK I could blame this on inheriting a database with missing error handling but it's all my fault! I got carried away with getting the code complete that I've missed quite a few modules without any error handling So basically I need to add a number of lines to each module. 1 at the top and...
  6. R

    Form Validation aka Am I cracking up

    yes it does!!
  7. R

    Form Validation aka Am I cracking up

    No it's not it's I get a run time error 2101. The setting you entered isn't vali for this property. I think it's because access knows I'm about to go into an infinite loop! I have if me.dirty=true the me.dirty=false end if This forces the code into the beforeupdate which I want to put a cancel...
  8. R

    Form Validation aka Am I cracking up

    I suppose I could use validate form or duplicate validation code which I don't want to do
  9. R

    Form Validation aka Am I cracking up

    Thanks for this. I didn't actually mean the navigation buttons at the top which I'm probably going to get rid of. I meant the ones at the bottom where it says 1 of 5 etc etc. However your changes work for those as well so appreciate it! One thing though the Me.txtDescription.Undo doesn't...
  10. R

    Form Validation aka Am I cracking up

    OK so this should open a tax category form. If you blank out the description, a field that is required, and then click the close button (door in top left hand of form) then you get an error and the form is not closed. Doing the same thing and clicking the navigation buttons at the bottom of the...
  11. R

    Form Validation aka Am I cracking up

    OK I'll cut it down and send something
  12. R

    Form Validation aka Am I cracking up

    OK just when you think it's working it's not! I have a catch 22 situation here. I said at the beginning "This works if trying to move to another record using the navigation bars." which was true. When capturing the error i had Cancel = True in the code. This I believe prevented selection of...
  13. R

    Form Validation aka Am I cracking up

    OK looks like the If Me.Dirty Then Me.Dirty = False forces the beforeupdate Thanks again
  14. R

    Form Validation aka Am I cracking up

    Thanks I'll take a look
  15. R

    Form Validation aka Am I cracking up

    Looks like If CountriesFormPass = "pass" Then DoCmd.Close acForm, "Countries" End If
  16. R

    Form Validation aka Am I cracking up

    Actually I'm still missing something here. When the button is clicked to close the form the beforeupdate hasn't taken place so at this stage I don't know if there are any errors as the variable won't have been set. I told you I'm cracking up
  17. R

    Form Validation aka Am I cracking up

    D'oh!! Thanks.
  18. R

    Form Validation aka Am I cracking up

    I want to validate the fields on a form over and above the definitions that exist in the data definition (i.e. numeric, must be filled in etc). I thought all I needed to do was put a bunch of ifs and elses in the beforeupdate part of the form with a setfocus a cancel = true possible a me.undo...
  19. R

    ribbons again

    I have a custom ribbon set up in usysribbons. The ribbon is so the user can navigate around his forms The ribbon contains some access commands that I've put on whilst I'm developing it I want to be able to dynamically alter the ribbon depending upon 1. whether or not it's me running it. if it...
  20. R

    Crosstab or something else

    I couldn't resist in trying this. I can concatenate my numbers in the query but can't separate them So if i put Expr1: [Units] & [totalwithtax] i get the righty figures but if I put Expr1: [Units] & " " & [totalwithtax] i get data mismatch
Back
Top Bottom