Recent content by Noson5434

  1. Noson5434

    Password mask in InputBox massage

    Paste this code into a module: Option Compare Database Option Explicit ' Description: ' This module is designed to provide an enhanced InputBox function that masks ' password input with asterisks. It leverages Windows API calls to create a ' hook procedure that intercepts the activation...
  2. Noson5434

    Module Error Handling Question

    To enhance your solution, consider utilizing the following method. You will need to include the following module: VBA JSON Public Function CalculateWeekdays(ByVal startDate As Variant, ByVal endDate As Variant, Optional ByVal includeHolidays As Boolean = False) As Variant On Error GoTo...
  3. Noson5434

    Module Error Handling Question

    This should work. Public Function CalculateWeekdays(ByVal startDate As Variant, ByVal endDate As Variant) As Variant On Error GoTo Err_Handler ' Check if the end date is before the start date. If endDate < startDate Then MsgBox "End date cannot be before the start date."...
  4. Noson5434

    vba from 32bit to 64bits

    https://codekabinett.com/rdumps.php?Lang=2&targetDoc=windows-api-declaration-vba-64-bit
  5. Noson5434

    vba from 32bit to 64bits

    Perfect 👍👍
  6. Noson5434

    vba from 32bit to 64bits

    Any errors?
  7. Noson5434

    vba from 32bit to 64bits

    @Ana12322 See if this works.
  8. Noson5434

    vba from 32bit to 64bits

    I will review this tomorrow
  9. Noson5434

    vba from 32bit to 64bits

    I made some changes. See if you are still having issues.
  10. Noson5434

    Conditional Formatting

    I managed to find a solution that doesn't require VBA. Instead of using a UNION query, I created a stored procedure (SP) that generates a RecordCount. Then, on the form, I set the RecordCount to be invisible (Visible = False) and used the ContractID Expression RecordCount > 1. This successfully...
  11. Noson5434

    Conditional Formatting

    I will work on a sample db and post soon.
  12. Noson5434

    Conditional Formatting

    3
  13. Noson5434

    Conditional Formatting

    So I used the following function to Dump the results into the Immediate window. Private Sub DumpFormatConditions() Dim objFrc As Access.FormatCondition For Each objFrc In Me.ContractID.FormatConditions Debug.Print objFrc.Expression1 Next objFrc End Sub And the results were...
  14. Noson5434

    Conditional Formatting

    I will give that a try and post the results
  15. Noson5434

    Conditional Formatting

    I am using Access 2016
Top Bottom