Search results

  1. 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)...
  2. Eugene-LS

    Solved Error 2766 when executing a MACRO with IF condition

    Try use quotation marks around text values [MaxHorseRatingTable]![centre]="DEL"
  3. Eugene-LS

    Solved Get the latest date from 3 fields

    Public Function GetLatestDate(Optional sWhereCondition As String = "") 'Usage: ' ?GetLatestDate("RecID = 23") '--------------------------------------------------------------------------------------------------- ' Name of table with fields "Phone", "Email" & "Text" ("Text" is reserved word !!!)...
  4. Eugene-LS

    Importing excel spreadsheet truncates field to 255 characters

    When importing, the Microsoft driver despite the fact that the field is long text evaluates the imported data on the first 8 lines. If the data in them is less than 255 characters, it considers them as short text and everything further is cut off accordingly. The same applies to any other data...
  5. Eugene-LS

    Multiple criteria on DCount including date field

    Yes, you are absolutely right! (y)
  6. Eugene-LS

    Multiple criteria on DCount including date field

    Harsh practice:
  7. Eugene-LS

    Multiple criteria on DCount including date field

    Below is an example:
  8. Eugene-LS

    Multiple criteria on DCount including date field

    Publish your table (part of the data) here - we'll see. There may be something wrong with your data.
  9. Eugene-LS

    Multiple criteria on DCount including date field

    Try changing semicolons to commas ...
  10. Eugene-LS

    Multiple criteria on DCount including date field

    The third argument of the function DCount() "WhereCondition" is a string! :)
  11. Eugene-LS

    Multiple criteria on DCount including date field

    Checked it out. It worked for me like this: =DCount("*";"tblJobRefBook";"JobStatus = 'Quoted' AND QuotedDate >=" & Format(Date()-30;"\#mm/dd/yyyy\#"))
  12. Eugene-LS

    Multiple criteria on DCount including date field

    If your regional date format is different from MM/DD/YYYY - try this: =DCount("Quoted","tblJobRefBook","[JobStatus] = 'Quoted' AND QuotedDate >=" & Format(Date()-30, "\#mm\/dd\/yyyy\#"))
  13. Eugene-LS

    Finding Data From String

    Or in this way: Dim strMailMessage As String Dim strRes As String strMailMessage = "Bla - Bla - Bla " & vbCrLf & vbCrLf & vbCrLf & "First name:" & _ vbCrLf & vbCrLf & "Phil" & vbCrLf & "GOGO" & vbCrLf & vbCrLf & "Last name:" 'Debug.Print strMailMessage strRes =...
  14. Eugene-LS

    Solved How to setup conditional formatting on a form

    Use Len() function
  15. Eugene-LS

    Solved got Error in last Row of sub_form

    Try this expression: =IIf(IsNull([SaleOrder]);Null;Nz(DCount("*";"SalesOrderDetailsT";"SaleID=" & [SaleID] & "AND SaleOrder <" & [SaleOrder]);0)+1)
  16. Eugene-LS

    Solved Automatically bring customer data

    If I understood you correctly, something like this:
  17. Eugene-LS

    msgbox combine

    Use a colon to combine lines If (Me.standard <> "apple") And (Me.frequency = "annual") Then strDocName = "report1": msgbox "all good", vbInformation
  18. Eugene-LS

    Save All Record On Subform

    Wrong!!! In my opinion you should take the argument from current record of open Recordset - not from current record of subform. ... "' and endt_num =" & Rs!endt_num & ";"
  19. Eugene-LS

    how create query to check data

    What about the space character? SELECT * FROM [YourTableName] WHERE ([YourFieldName] Like "*[!A-Z,a-z,0-9]*"); With space character exception: SELECT * FROM [YourTableName] WHERE ([YourFieldName] Like "*[!A-Z,a-z, ,0-9]*");
Top Bottom