Search results

  1. Eugene-LS

    DSum function

    textual arguments must be enclosed in quotes aa = DSum("IncTotal", "Income", "mmyy = '" & vmth & "' AND IncCA = & vt & " AND Incyy = 'vcy'") ... AND Incyy = 'vcy' ... :) Hint: The third argument of the Dsum() function (and similar ones) is constructed according to SQL WHERE rules Good luck!
  2. Eugene-LS

    Solved Sorting rows on a form

    ... of sorting field ... the sorting field event, not the form event Otherwise the cursor will be reset Together: Use "After Insert" form ivent and "After Update" of sort field ivent.
  3. Eugene-LS

    Solved Sorting rows on a form

    Post #7
  4. Eugene-LS

    Solved Sorting rows on a form

    That's is better way!
  5. Eugene-LS

    Solved Sorting rows on a form

    01. Set "Order By" your form propery as you wish 02. On "After Insert" ivent of form set code: Private Sub Form_AfterInsert() Me.Requery End Sub
  6. Eugene-LS

    How to put Check marks in query

    Ye-ee-e-s-ss!
  7. Eugene-LS

    How to remove border around the button after pressed.

    Another way: Use a Label control instead of a button, it also has an "On Click" event. Private Sub LabelTest_Click() MsgBox "There's no border around the Lable!", _ vbInformation, "Use a label instead of a button!" End Sub
  8. Eugene-LS

    How to remove border around the button after pressed.

    Try to set focus to enother control of form Private Sub cmdButton_Click() ' ... ' ... Me.EnotherControl.SetFocus End Sub
  9. Eugene-LS

    Solved Working with time: Showing elapsed time as base 10 number

    I showed this function only as an example. You can use similar calculations wherever you want
  10. Eugene-LS

    Solved Working with time: Showing elapsed time as base 10 number

    I know ... :) I forgot to multiply the days by 24 hours. I already corrected the line TimeTo10Base = Val(Mid(sVal, 1, iPos - 1)) to: TimeTo10Base = Val(Mid(sVal, 1, iPos - 1)) * 24 ... post #4
  11. Eugene-LS

    Solved Formatting Excel File from Access

    Make test application with just the form (with subforms) and required tables/queries. Just a few (fictitious) records to view error.
  12. Eugene-LS

    Solved Working with time: Showing elapsed time as base 10 number

    Test: Debug.Print TimeTo10Base("1 1:30:00") Debug.Print TimeTo10Base("0 1:15:00") Returns: 25,5 1,25
  13. Eugene-LS

    Solved Formatting Excel File from Access

    That's unexpected. It didn't happen to me. Can you post a sample DB with test data?
  14. Eugene-LS

    Solved Formatting Excel File from Access

    Please try this code:
  15. Eugene-LS

    Solved Apostrophe in statement giving missing operator

    use double quotes twice on each side of the value with apostrophe strSQL = strSQL & "WHERE ... Not In ('ELE/PP', ""EA/C'd"", 'JD', ... )"
  16. Eugene-LS

    help with salaries Database

    Put code in any extended module Example of Use: SendEmailWtAttachment "name@domen.com; name02@domen02.com", "Subject Text", "Hi! ... message ...", "C:\Temp\filename.zip"
  17. Eugene-LS

    help with salaries Database

  18. Eugene-LS

    help with salaries Database

    Oh that's easy, put the command: Me.Combo_Emp_Name.Requery After string: lDep = Me.Combo_Dep It should look like this: ' ... Else Me.Dirty = False sPeriod = Me.cboPayPeriod lDep = Me.Combo_Dep Me.Combo_Emp_Name.Requery...
  19. Eugene-LS

    help with salaries Database

    Did you mean MS Outlook?
Back
Top Bottom