Search results

  1. B

    Solved Help with recordset

    Thank you. That worked
  2. B

    Solved Help with recordset

    thank you for your reply. I do have something similar to that. I want to put it in a function because I find myself duplicating code... Private Sub indPaidRptBtn_Click() DoCmd.OpenReport "pbR", acViewReport, , _ "Clinician=""" & openRptCbo & """ and [isPaid]= True and...
  3. B

    Solved Help with recordset

    The Debug.Print shows the results I want to see. Lots of True and False Public Function chkQry() Dim rs As Recordset Set rs = CurrentDb.OpenRecordset("SELECT * FROM reportQ") While Not rs.EOF Debug.Print rs!Clinician = " & openRptCbo & " And rs!dateEntered =...
  4. B

    autobackup database

    that did it! thanks for your help
  5. B

    autobackup database

    MsgBox Dir(destPath) came up empty, whats that tell me?
  6. B

    autobackup database

  7. B

    autobackup database

  8. B

    autobackup database

    i am still useing access 2010, if that matters
  9. B

    autobackup database

  10. B

    autobackup database

    debug.print shows C:\Users\bryan\Documents\msAccess\beacon\backup; so why does the code not skip the mkdir?
  11. B

    autobackup database

    the directory does exist, i was expecting the code to skip the mkdir if it evaluated false
  12. B

    autobackup database

    i added a "check for dir" to the code and the code will make the directory and copy the file if the dir does not exist, but i get a "runtime error 75: path/file access error" on the MkDir (destPath) line if the dir already exists. what am i missing? Public Function BackUpAccess() Dim...
  13. B

    Solved Run time error 5: invalid procedure call or argument

    thank you, arnelgp, works wonderfully now
  14. B

    Solved Run time error 5: invalid procedure call or argument

    with the help from this site and others, i have cobbled together this code and have had it work. however, this site i wish to extract data from gives me an error 5. Private Sub Command56_Click() 'On Error GoTo ErrorHandler Dim rstSsn As DAO.Recordset Set rstSsn =...
  15. B

    Send Access report in body of Outlook email

    The Master Sergeant wanted me to run a report at the end of the day, and then email it to him… easy enough. He also wants a summary of the report in the body of the email. :banghead: There must be a way to have access do this for me. So… I started with this code from Twinnyfo...
  16. B

    Solved openReport where form.field = date

    thank you cj, that did it
  17. B

    Solved openReport where form.field = date

    i am sure that i am missing something simple. i have viewed pbaldy's thread, http://www.access-programmers.co.uk/forums/showthread.php?t=205231 and http://www.baldyweb.com/wherecondition.htm but my code still is not outputting what i expect. my function is; Function ckIn() Dim dbs As...
  18. B

    Solved print report from public function

    i am stilll stumped on this. this is where i am at: Function printFlu(optArgs As String) Dim repFilStr As String repFilStr = "clstrFlu = True" & IIf(Len(optArgs) > 0, " AND " & optArgs, vbNullString) repFilStr = "clstrHep = True" & IIf(Len(optArgs) > 0, " AND " & optArgs...
  19. B

    Help with Select Case...

    Thanks Sean, I got it to work
  20. B

    Help with Select Case...

    I am still trying to learn how to use VBA I want to get the code from field "sidstrACT_STA_PROG" and return what i have in my select...case function. but i am getting the same return as the sidstrACT_STAT_PROG field. my code is; Option Compare Database Option Explicit Function...
Back
Top Bottom