Recent content by Dag Solder

  1. D

    Solved Run code from a form before data has changed, but can't be on Form open

    Thank you MajP and arnelgp perfect, this is exactly what I need - works like a charm
  2. D

    Solved Run code from a form before data has changed, but can't be on Form open

    Sorry, I probably didn't explain myself correctly. Form B is already open, so I can't use the On Load event in Form B to fire my procedure. That is why I put a button on the form, to check if the code would run and function correctly when the data had been passed from Form A
  3. D

    Solved Run code from a form before data has changed, but can't be on Form open

    @Gasman, The problem isn't with Form A, this performs it's intended function, the problem is that Form B needs to be open for the information to be passed from Form A and only then can the additional code be run. @theDBguy, I am not sure if a timer would work, at least, not from the point...
  4. D

    Solved Run code from a form before data has changed, but can't be on Form open

    Hi DBguy, I used the Control wizard for a command button to open another form initially and then changed the Macro it wrote to VBA using the Access function.... DoCmd.OpenForm " Frm_B", , , "[ID] = " & Me.txtZiff.
  5. D

    Solved Run code from a form before data has changed, but can't be on Form open

    Hi everyone, I have 2 forms: Frm_A & Frm_B. Frm_A is a small pop up which contains a combo box to allow the user to select a record to be passed to Frm_B and a command button ‘EDIT’ Frm_A and Frm_B are opened by another form at the same time with Frm_B being hidden until a command button...
  6. D

    Solved Replace combo box with text box to display query result

    @cheekybuddha & @bob fitz, thank you both for taking the time to look at this for me, I am in awe of how you guys navigate around code like you do! The code works like a dream and removes yet another hurdle in my way. It was the [Manual Type] that was tripping me up, had tried just about...
  7. D

    Solved Replace combo box with text box to display query result

    Hi @cheekybuddha, thank you for your message, to be honest, this is far above my knowledge level / skill set. I have located the Record source for the text box and tried various permutations of the code you kindly suggested, but other than syntax errors, my text box returns the same: #Name? The...
  8. D

    Solved Replace combo box with text box to display query result

    Hi All, I wonder if someone could help please? I have a simple DB with one table, one form and 2 queries. (attached). The form has a pair of cascading combo boxes. The second query returns the highest number to the second combo box. Instead of displaying / choosing this maximum value in a...
  9. D

    Solved Saving a revised version of a record and keeping the original

    Hey Manic, Reading what you have posted, I believe (and forgive me if I am wrong) that you may have misunderstood the code posted by Arnelgp. His code is designed to be used like this: Submit a new report using the 'Add Record' button To perform a revision, select the record you want to edit...
  10. D

    Solved Saving a revised version of a record and keeping the original

    Hey Manic, I just looked at the code posted by arnelgp and commented out the following line in the form code: ' strMaxReport = Replace(strMaxReport, intMaxNum & "", (intMaxNum + 1) & "") It seems to work how you describe and has given me some fresh ideas
  11. D

    Solved Saving a revised version of a record and keeping the original

    Hey Manicduck, No worries, I don't mind as long as the Mods don't! Dag
  12. D

    Solved Saving a revised version of a record and keeping the original

    Thanks All! I am still looking at the various methods offered, although I am having a couple of problems with the code for the audit trail. Still researching, but again, thanks for all of the input.
  13. D

    Solved Saving a revised version of a record and keeping the original

    @arnelgp & @Uncle Gizmo, thank you both for your response, much appreciated I will see how I can work your suggestions into my project Stay Safe Dag
Top Bottom