Search results

  1. 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
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. MattBaldry

    Solved Split Minutes into Hours, Minutes, Seconds

    For the full background on this I have a time labour calculator for our internal BOMs. Our company timings are done as a decimal of the minute, in 6 second (0.10) or 15 second (0.25) breaks. When I export our BOM into a 3rd party application, their labour is broken into 3 fields, Hours, Minutes...
  7. MattBaldry

    Solved Split Minutes into Hours, Minutes, Seconds

    Thanks all. I have this working perfectly now. I used arnelgps code and it did exactly what I needed. ~Matt
  8. MattBaldry

    Solved Split Minutes into Hours, Minutes, Seconds

    Thank you, works perfect ~Matt
  9. MattBaldry

    Solved Split Minutes into Hours, Minutes, Seconds

    Hi All, Does anyone have a snippet somewhere on how to separate a minute field into each hour, minutes, seconds? IE 75.5 would be 1 hour 15 minutes 30 seconds ~Matt
  10. MattBaldry

    Form Dim Strings

    Update. Quick search and I have changed the Dim for Public, but the below now does not work. Says invalid outside procedure. But when it has Dim, is works. Do I need to add something else? Public strLoggedUser As String strLoggedUser = DLookup("EmployeeID", "tblEmployee"...
  11. MattBaldry

    Solved Delete Query

    Hi Pat I didn't get the chance. I will give it a go though as their bug is still creating the records. Just working on something else at the moment with a tight deadline. ~Matt
  12. MattBaldry

    Form Dim Strings

    Hi all, If I have repeated Dim Strings, can I declare them as public once on a form then just refer back to them anywhere else on the form code? Example as the below code. This is used on a few different command buttons. Dim strLoggedUser As String strLoggedUser =...
  13. MattBaldry

    Solved Delete Query

    I can close this now. Managed to get the 3rd party to login and do the delete for me, so all good. ~Matt
  14. MattBaldry

    Solved Delete Query

    Hi Pat, Sadly this not my table, I can access it to see the issues, but cannot change anything. Basically it adds 3 lines to the audit log for every product each time someone opens any record. This is a bug in the software, nothing that I have done. The 3 lines that get added are not needed at...
  15. MattBaldry

    Solved Delete Query

    I am doing this at the moment, but it is still slow, and with this may records I need to run the query so many times, which is why I was hoping I could get Access to loop it for me. I could then set it on another machine and let it loose for me. ~Matt
  16. MattBaldry

    Solved Delete Query

    Hi ebs17, Please see code below. DELETE dbo_StockRecordAuditLog.StockRecordAuditLogID, dbo_StockRecordAuditLog.StockRecordID, dbo_StockRecordAuditLog.Username, dbo_StockRecordAuditLog.Action, dbo_StockRecordAuditLog.ActionDateTime FROM dbo_StockRecordAuditLog WHERE...
  17. MattBaldry

    Solved Delete Query

    Hi All, I have a query to delete certain records from a link SQL table, but there are a lot (over 300k). Is there any way of creating a query to loop delete 100 records at a time so it doesn't get hung up trying to delete them all in one go? ~Matt
  18. MattBaldry

    AutoExpand on ComboBox seems broken

    For our use, we have some fields that have similar entries, but with lots of characters. This saves the single finger typists from having to put it all in. They can start and now it does start to filter by what they have typed so far. Before it had nothing so you had to type the entire text in...
  19. MattBaldry

    AutoExpand on ComboBox seems broken

    Updated to a public function which also seems to work nicely. Public Function funDropdown() On Error GoTo ErrorHandler Screen.ActiveControl.Dropdown ExitSub: Exit Function ErrorHandler: MsgBox Error$ Resume ExitSub End Function
  20. MattBaldry

    AutoExpand on ComboBox seems broken

    I have had this issue and posted a while back, and have since been using the below code in the Got Focus of the combo box. It is not ideal, but it does then allow the AutoFill to work. (where cboBoxName is your combo box name) Private Sub cboBoxName_GotFocus() Me!cboBoxName.Dropdown...
Back
Top Bottom