Search results

  1. Eugene-LS

    Join expression not supported in join query Access

    Maybe the "KPI_qryMain" query outputs the "UserID" field twice Check it out
  2. Eugene-LS

    Solved Sub Form Requery a Query from another form

    It occurs on FormLoad procedure ... event when a form is loading
  3. Eugene-LS

    Solved Sub Form Requery a Query from another form

    Post your code please ... and ... try that code: Dim objForm As Form Dim objCtrl As Control Const csHiddenFormName$ = "Your Hidden Form Name" ' <- Write your hidden form (with SubForm to update) name here Dim sVal$ If CurrentProject.AllForms(csHiddenFormName).IsLoaded = False Then...
  4. Eugene-LS

    Solved Compile Error When Clicking on Button

    Yes. As an option: Write code at "early binding" and use it at "late binding".
  5. Eugene-LS

    Solved Compile Error When Clicking on Button

    No any, but sometimes it's more reliable to use "late binding" Reference to "Microsoft Excel 16.0 Object Library" not needed Try: Dim objExcelApp As Object Dim objWrkBk As Object, objWrkSht As Object Set objExcelApp = CreateObject("Excel.Application") Set objWrkBk =...
  6. Eugene-LS

    Solved Sub Form Requery a Query from another form

    Try: If CurrentProject.AllForms("Your Main Form Name").IsLoaded = False Then Exit Sub Forms("Your Main Form Name").Controls("Your SubForm Control Name").Form.Requery 'or 'Forms("Your Main Form Name").YourSubFormControlName.Form.Requery Forms("Your Main Form...
  7. Eugene-LS

    Close modal form without refreshing calling form

    Try change continuous form property : RecordsetType
  8. Eugene-LS

    DLookup using multiple criteria?

    Dim sLookUpField As String, vVal Select Case Me.cboChooseProduct.Column(40) Case 1: sLookUpField = "[ZoneA]" Case 2: sLookUpField = "[ZoneB]" Case 3: sLookUpField = "[ZoneC]" 'Case ... : sLookUpField = "[Zone ...]" Case Else: Exit Sub End...
  9. Eugene-LS

    Check if Form is open

    Public Function FormIsLoaded(sFormName$) As Boolean ' Determines if the form specified in argument <sFormName> is loaded (in any view except Design) ' -------------------------------------------------------------------------------------------------/ On Error GoTo FormIsLoaded_Err If...
  10. Eugene-LS

    Extract Zip

    Try: Function ExtractZipAndSaveAsTxt(zipFilePath As String, destinationFolder As String) Dim shellApp As Object Dim zipFolder As Object Dim fileItem As Object Dim extractedFilePath As String ' Create Shell object Set shellApp = CreateObject("Shell.Application") ' Open the ZIP file Set...
  11. Eugene-LS

    VBA - change column name function

    Try: Public Sub change_col_nameOld(TableName As String, OldColName As String, NewColName As String) Dim tblDef As DAO.TableDef Dim dbs As DAO.Database Dim iVal As Integer Set dbs = CurrentDb Set tblDef = dbs.TableDefs(TableName) For iVal = 0 To tblDef.Fields.Count - 1...
  12. Eugene-LS

    Update queries, lookup tables, and changing foreign key IDs

    Take a look to strings bellow please
  13. Eugene-LS

    Mail merge query with multiple records

    Look for Concatenation ...
  14. Eugene-LS

    Solved Search with String and Date in the same textbox in access form

    Take a look at the example please ... Query “Query1” for understanding only - can be deleted
  15. Eugene-LS

    How old is your computer?

    It seems we all choose good equipment for long years.
  16. Eugene-LS

    How old is your computer?

    My BIOS is 10 yars old ( ASUS H97-PLUS)
  17. Eugene-LS

    Solved Move selected to top of listbox

    Private Function GetListValues() As Variant Dim sVal$, idx% For idx = 0 To Me.lstDefects.ListCount - 1 If Me.lstDefects.Selected(idx) = True Then sVal = sVal & csDelimeter & Me.lstDefects.ItemData(idx) End If Next idx If Len(sVal) > Len(csDelimeter)...
  18. Eugene-LS

    Solved Error 2766 when executing a MACRO with IF condition

    Try use quotation marks around text values [MaxHorseRatingTable]![centre]="DEL"
Back
Top Bottom