Search results

  1. Eugene-LS

    Multiple criteria on DCount including date field

    The third argument of the function DCount() "WhereCondition" is a string! :)
  2. 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\#"))
  3. 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\#"))
  4. 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 =...
  5. Eugene-LS

    Solved How to setup conditional formatting on a form

    Use Len() function
  6. 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)
  7. Eugene-LS

    Solved Automatically bring customer data

    If I understood you correctly, something like this:
  8. 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
  9. 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 & ";"
  10. 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]*");
  11. Eugene-LS

    #ERROR

    try IsError Function =IIf(IsError([Enquirymaster100 subform].[Form]![REF NO]);0;[Enquirymaster100 subform].[Form]![REF NO])
  12. Eugene-LS

    Highlight Active Control

    you can also use this effect to highlight an active record in a continious form Restriction: All form data fields must not be available for focus.
  13. Eugene-LS

    Highlight Active Control

    This won't be a problem, since you can also use the function in your code. Private Sub ObjectName_GotFocus() FRMControlFocusInOut Me.Name, True 'Highlighting Control ' your code ... End Sub Private Sub ObjectName_LostFocus() FRMControlFocusInOut Me.Name, False 'Highlighting Control...
  14. Eugene-LS

    Highlight Active Control

    Yes! - we do. Step 01 Set BackColor (of selected fields) to #FFFDD1 Step 02 Set back style (of selected fields) = Transparent ... And "hocus pocus" is ready. :cool: Good luck!
  15. Eugene-LS

    Highlight Active Control

    I meant, almost the same result I think - the more choice of solutions - the better
  16. Eugene-LS

    Highlight Active Control

    01. Setting the field back color (Light Yellow) 02. Making the field back style transparent - Done! When the field gots focus, it restores the background color
  17. Eugene-LS

    Highlight Active Control

    And ... Almost the same without any code at all (y)
  18. Eugene-LS

    Highlight Active Control

    the same with less code ...
  19. Eugene-LS

    IIF and wild cards

    Try to use semicolons instead of commas as separators of function arguments
Back
Top Bottom