Search results

  1. MattBaldry

    Solved Split Minutes into Hours, Minutes, Seconds

    Thank you, works perfect ~Matt
  2. 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
  3. 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"...
  4. 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
  5. 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 =...
  6. 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
  7. 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...
  8. 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
  9. 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...
  10. 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
  11. 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...
  12. 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
  13. 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...
  14. MattBaldry

    Fixed Form Position no Overlaps

    Yes, I like this idea. I will have a look into this as it may work for me. ~Matt
  15. MattBaldry

    Fixed Form Position no Overlaps

    Hi All, Is there a way of making a form with a fixed position but not allowing any other forms to over/underlap it? I wanted to have a left sided menu for my modules, and when one is selected a custom ribbon is then loaded. I know a fixed position can be done, but wasn't sure if I could then...
  16. MattBaldry

    Solved Insert Query vs VBA Code

    Hi CJ, I normally have my listboxes/combo boxes row source as a pre-made query. Would your method be a better option for me to learn? ~Matt
  17. MattBaldry

    Solved Insert Query vs VBA Code

    Thank you for your comments. This one for me is more about my own preference than down to speed. I wanted to learn the VBA side of it instead of me taking the "easy way" and creating the query and calling it. I have changed to the CurrentDb.Execute strSQL rather than DoCmd.RunSQL strSQL though...
  18. MattBaldry

    Solved Insert Query vs VBA Code

    Thank you for your feedback. I think I am going to move to the VBA method. I want to reduce the number of objects in my DBs and this will be a decent start. ~Matt
  19. MattBaldry

    Solved Insert Query vs VBA Code

    Hi all, I have always used a method of creating an insert query and then calling this with VBA when I need to add data to a table. DoCmd.SetWarnings False DoCmd.OpenQuery "qryInsertReturnAction", acViewNormal, acEdit DoCmd.SetWarnings True Is there any benefit to changing this to have the SQL...
  20. MattBaldry

    Print File to Specific Printer

    Hi Sonic8, I haven't had a chance to work on it properly. I will work on getting it to print first, then sort the printer issue out. I will keep you updated :) ~Matt
Back
Top Bottom