Search results

  1. bastanu

    Solved Determine AllowBypassKey is On or Off

    Because you are not running the function from the form that has the txtbox text box control. Read the comment I wrote that I see you deleted:
  2. bastanu

    Solved Determine AllowBypassKey is On or Off

    Maybe try this updated version: Public Function ABKey() 'On Error GoTo ErrHandler 'Dim txtbox As Access.Control you don't need this line if the function runs in the form that contains a textbox control NAMED txtbox; you use Me.txtbox to refer to it; if this is in a standard module you need to...
  3. bastanu

    De-Identifying Data

    Why not use some hashing functions (https://en.wikibooks.org/wiki/Visual_Basic_for_Applications/String_Hashing_in_VBA)?
  4. bastanu

    Solved Determine AllowBypassKey is On or Off

    Post your code (using the code tags in the forum toolbar) instead of posting screenshots and someone will correct it for you, we don't want to have to type it all from scratch....
  5. bastanu

    Solved Determine AllowBypassKey is On or Off

    See this post: https://stackoverflow.com/questions/23687970/vba-on-error-goto-errhandler Private sub Foo() On Error GoTo ErrHandler 'do stuff ExitSub: ' clean up before exiting Exit Sub ErrHandler: ErrorHandler.messageBox "ThisModuleName","Foo" Resume ExitSub End Sub
  6. bastanu

    Solved Determine AllowBypassKey is On or Off

    Like theDBGuy showed you in post # 23
  7. bastanu

    Solved Determine AllowBypassKey is On or Off

    Apologies, I see now, the OP was referring the the missing "ExitHandler" VBA label....
  8. bastanu

    Solved Determine AllowBypassKey is On or Off

    you don't define it as a label is a type of control; you add it to your form in design view, you give it name using the Properties window then you can refer to it in VBA.
  9. bastanu

    Solved Determine AllowBypassKey is On or Off

    a string (txtbox) does not have a backcolor property....
  10. bastanu

    No Such Interface supported when using Access VBA to Merge Excel Cells

    Try to fully qualify the wsht variable: https://stackoverflow.com/questions/60140965/applying-code-to-active-workbook-from-another-workbook-error-no-such-a-interfac Cheers,
  11. bastanu

    Solved VBA Clear all data

    (y)
  12. bastanu

    Solved VBA Clear all data

    Because you have a spelling in the query name...you're missing the "y"
  13. bastanu

    Solved Attaching file to outlook email from Access

    You're very welcome, good luck with your project! Cheers,
  14. bastanu

    Solved Attaching file to outlook email from Access

    As suggested use CTrl+G to open the immediate window and inspect the value of the strPath2 variable. What is the format, mine was a guess, maybe you have it "d-m-yyyy", can't really say by looking at 8-8-2022.....
  15. bastanu

    Solved Attaching file to outlook email from Access

    Try to wrap the field in the Format () function: Format([PH_ISAC], "m-d-yyyy") & "\"
  16. bastanu

    limit the amount of forms to certain people

    My approach is to store the user access rules in a custom system table (prefixed with "usys") in the back-end itself. That way making changes to what users can see and do in the forms is simply adding\editing data instead of adding\editing code...
  17. bastanu

    Display query results

    If the user doesn't need to interact with the data you can simply have a list box on the form with a column for each query field and simply set its row source to the selected query in the click event of the button(s). The advantage of this over using a subform is that if the name of fields...
  18. bastanu

    Solved Attaching file to outlook email from Access

    Here is what I use, I like to check if the file exists and keep the folder and file names separate, but otherwise similar to previous post: Dim sPattern As String, sFolder As String, sFile As String,sSourceFile as String sFolder = "G:\CLASP\CLASP Tools" sPattern = "RG_" &...
  19. bastanu

    Front End Distribution Using SQL Server as Back End

    I think when you have MS SQL, Oracle, MySQL, PostgreSQL or similar backends the best approach would be to store the front-ends right in the backend itself. You could have a tblFrontEndVersions table with fields storing the version number, description of changes and a zipped version of the...
  20. bastanu

    VBA Coding to filter a form based on a search Combo Box

    Glad to hear you got it working! Usually it is better for the lookup tables such as your OrderStatus to have unique StatusID or Code and a description; this setup allows you to refine\change the description without having to run updates on the actual data table(s) to replace the old with the new...
Back
Top Bottom