Search results

  1. W

    Encrypting/Decrypting Files using VBA

    I had considered that at one point, but I couldn't figure out how to make the credentials stay with Access, rather than the user.
  2. W

    Main form's Load Event firing on Application Quit - say what?

    I'm developing in Access 2007 and created a runtime version. When the user clicks the X to close the runtime application, the main form's Load event fires. Any clues as to why this might be? Some of the code is based on other forms that do close, so of course errors start flying. Note, this...
  3. W

    Encrypting/Decrypting Files using VBA

    The contents need to be accessed through the database. Currently, the database automatically opens the files in their native application, and I'd like to retain this functionality, as this product is being developed for the lowest common denominator (i.e., automate as much as possible)...
  4. W

    Encrypting/Decrypting Files using VBA

    Anything and everything - .MSG files (the inquiries are initiated by incoming emails), .PDFs, .DOCs., .XLS are the most prominent, but I've even seen some .wav files come through. I'm currently converting the files into binary streams, then saving the streams into .DAT files. If I could figure...
  5. W

    Encrypting/Decrypting Files using VBA

    If I were able to store the files within the tables of the database (as attachments in access, or as varbinary(max) records in SQL Server) the users would only be able to view the attachments associated with the inquiry they were viewing. The users won't have direct access to the tables due to...
  6. W

    Encrypting/Decrypting Files using VBA

    I guess I'm not being clear - allow me to use an example: The database provides Paul access to Inquiry #123. George has access to Inquiry #456. Each needs access to the attachments associated with their own inquiry, but not the other. The attachments are stored in the following locations...
  7. W

    Encrypting/Decrypting Files using VBA

    I'm putting together an access database (2007) that tracks client inquiries (or as everyone else calls them, trouble tickets) and I want to be able to attach files to the inquiry record. My first attempt was to use a linked table with an attachment field, but given the quantity of inquiries we...
  8. W

    Save As command with variable file name

    That's really funny - my first response was precisely how to rename the table, but I reread your original post and thought you wanted to save it as a separate file, so I deleted everything and rewrote that! Anyway, here's how to rename a table, assuming you've created a second table that has...
  9. W

    Save As command with variable file name

    If you're using a Save As File Dialog, you can specify the file name as the InitialFileName in the file dialog prior to displaying it. Dim fdlg As FileDialog Dim FileName As String Set fdlg = Application.FileDialog(msoFileDialogSaveAs) ' Set the value in the unbound textbox...
  10. W

    Please help!!!!!!

    What do you mean by "my code won't open"? Can you open the database? If so, what happens after you type Alt+F11? If that gets you nowhere, try holding the shift key when opening the database, then doing the Alt+F11 trick...
  11. W

    Send email from access vba using outlook

    In the Do...Loop portion of your code, try this: Do Until rsemail.EOF MyMail.BCC = MyMail.BCC & rsemail!Email & ";" 'And on to the next one... rsemail.MoveNext Loop This way, each address is added with a semi-colon at the end. When the code is looped, the next address is simply appended...
  12. W

    (re-)Registering DLLs/References for Runtime Deployment

    I'm deploying an Access 2007 front end application as a runtime application (.ACCDR), and I'm using a few non-standard reference libraries in the VBA. When I package the database into the .ACCDR file, do the reference libraries get bundled, or do I need to add references to them on the user's...
  13. W

    Trying to make some checkbox = true statements in access, that change the color of a

    Also, try adding "me" in front of the control name
  14. W

    Trying to make some checkbox = true statements in access, that change the color of a

    At first glance, it appears as though that code should work. I'd check to make sure that the back style is Normal, and not Transparent. Also, (and this is probably a small oversight) make sure that you have your colors correct - in both cases above, if or else, you are changing the color to...
  15. W

    Error 3045 on Sharepoint DB

    A manager created an issued database (based on a template) and asked me to write some code that would create new records based on incoming emails. The code is run on the Outlook side, fired by the Item_Added event of the Inbox Collection. Everything was working fine until the manager, on a...
  16. W

    Calculating "X Years, X Months and X Days" between two dates

    If you add the days, then the months, and then the years (rather than the other way around) it does work: ? DateAdd("d", 27, #2/2/10#) 3/1/10 ? DateAdd("m", 10, #3/1/10#) 1/1/11 ? DateAdd("y", 2, #1/1/11#) 1/1/13 It's not the most reliable method for determining the difference, given that...
  17. W

    Calculating "X Years, X Months and X Days" between two dates

    Find the difference between two dates is simple if you're simply looking for the number of days between them. However, if you're looking to express the difference in a bit more user-friendly way, you can use the following code to calculate the difference in years, months, and days. The code...
  18. W

    Runtime Error 52 when using Dir Function

    WORKAROUND - Runtime Error 52 when using Dir Function I've developed the following workaround which simply ignores any errors raised when deleting the file. I changed PROC_EXIT: Set msgNew = Nothing Set rsInq = Nothing Set rs = Nothing Set db = Nothing If Dir(strPath &...
  19. W

    Runtime Error 52 when using Dir Function

    I purposefully left out the major part of the function due to preprietary (and ultimately irrelevant) information. The End Select statement was left in by accident, as I had a couple of application-specific error handling procedures in place. Here is the code: Public Sub MySub(msgNew as...
  20. W

    Runtime Error 52 when using Dir Function

    Mihail, For some reason when I initially replied, this part didn't show up in your reply. Either way, the error still occurs.
Back
Top Bottom