Recent content by MattBaldry

  1. MattBaldry

    Solved Open Form and Apply Filter to Subform

    I actually just solved this myself thanks to an old post from IslaDogs. I used the below. DoCmd.OpenForm "frmProductionManagement" [Forms]![frmProductionManagement]![sfrmProductionManagement].Form.Filter = "[Outstanding] > 0"...
  2. MattBaldry

    Solved Open Form and Apply Filter to Subform

    Hi all, I have been looking and trying and cannot find the right syntax to open a form and apply a filter to the subform. Main form is frmProductionManagement, subform is sfrmProductionManagement is in Continuous Form view. If I set the filter in the subform in design mode to [Outstanding] >...
  3. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    There are files in the folder and subfolder. The code I have now works fine which is good. I create the zip in a temp folder. Clear the main folder then move the zip to the main folder from the temp one. It's not elegant, but works for the basic needs we have. Thank you for your help, your code...
  4. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    Hi Gasman, That code only deleted files and not folders. Now create the zip file in a temp location, empty the source folder then move the zip file back. I had to put a 2 second pause after the zip file is created otherwise it deleted the files before it was finished. I used the code on the...
  5. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    Hi Gasman, I went with this approach in the end. I create the zip file in a temp folder, clear the first folder, then move the file from Temp to Original. I will update this thread once I have it working. At the moment it is deleting the files/folders before the zip has complete. ~Matt
  6. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    Hi moke123, This just gives an error as below. ~Matt
  7. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    Hi Gasman, I cannot seem to get this to work. It doesn't remove anything :( ~Matt
  8. MattBaldry

    Solved Delete Files and Folders, Apart from .zip

    Hi all, I have looked but cannot find a method for this. I want to delete all files and folders from a main folder, apart from anything *.zip. I can find code to delete everything, or all of a certain file type, but nothing to only leave a certain file type. ~Matt
  9. MattBaldry

    Query Error in List Box

    Ignore me, I have figured it out. I had the wrong expression on the listbox requery after box checked. Been a long day. ~Matt
  10. MattBaldry

    Query Error in List Box

    Hi All, I have generated a query that filters from options of a form. When I open the form, the list box posts the below error. But if I open the query itself, it shows the data and no error. Just won't display it in the list box. I have 3 check boxes for the dates Created Date, Sent Date...
  11. MattBaldry

    Logged Times Challenge

    Thanks ebs17, Apologies if it sounded like I was moaning. Your code was better than anything I could have done and is how I learn. I do read and understand the code and will make use of this for sure. ~Matt
  12. MattBaldry

    Logged Times Challenge

    This also only show 1 person, and 1 date. If there are multiple dates, it doesn't show each day and person. Below is the full table for this job in case that helps. WorksOrderRecordID WorksOrderReference BookingDate EnteredBy StartTime FinishTime 127304642 21639-003 12-Feb-24 Operator 1...
  13. MattBaldry

    Logged Times Challenge

    This looks good, however there is an additional challenge I forgot to add. There may be times where an operator logs onto another operation, on the same day, but after the last finish time. this would then need to be treated as brand new time logged. As an example, the same operator above may...
  14. MattBaldry

    Logged Times Challenge

    Yes, this is correct. The current system logs all these as different times. I want the first start, the last end and then to discount all starts and ends by the same person on the same job between the first and last ones if that makes sense. And then use that time as the amount of time logged...
  15. MattBaldry

    Logged Times Challenge

    Hello forum brains, I am hoping someone might have an idea on a solution here. We have a 3rd party application to for our production people to log their times on jobs. It works, almost, how we want it to. Where it falls down is when people log onto multiple operations at the same time (which is...
Top Bottom