Distinguish between renamed .accde file and .accdb file - ms-access

I have been given an Access database .accdb file by a client to work with. When I open it and try to open a code or form design window, it reports that it is an .accde file (with no code). Is there a way (with a hex editor, for example) that I can prove to my client that this is a renamed .accde file, not an .accdb?

Make a copy of the original file, and save it as an accde file.
Create a new small database with just a splash screen and save it as an accdb file.
Copy that file, and then convert it to an accde file.
Schedule a 15 minute meeting with your boss and show him all 4 files.
Unless he just fell off a turnip truck, he's going to see the difference between when an accdb and accde file open (i.e. your newly created files), and see that the original accdb file opens with the exact same message as your accde copy and your newly created accde.
If he can't put 2 and 2 together, schedule a meeting with his supervisor and ask for his job.

Related

How to handle Onedrive duplicating accdb files?

We currently have a shared Access database in a Onedrive folder.
User interacts with the file via an excel file with read\write functions. E.g. dbInteract.xlsm
Otherwise, nothing else interacts with the accdb file. The excel file points to a specific accdb file name. E.g. myDb.accdb
Problem arises when (I think) there is an syncing error and one user interacts with the database anyways.
Onedrive creates duplicates of myDb.accdb and names them myDb-user1.accdb etc.
The file myDb-user1.accdb becomes the latest updated file while myDb.accdb remains untouched.
When user retrieves info via dbInteract.xlsm, info retrieved is still from the myDb.accdb file (the file that was not updated). This has created confusion amongst users and they would try to update the database and it reflecting that nothing has changed whilst unknowingly create more accdb files on the Onedrive.
Issue resolves itself once the spare databases has been deleted but was wondering if there can be any preventive measures I can use.

Excel modifed date is changing when running package

I have a problem when loading data from excel source(excel 2010). When ever I run the package, the excel file modified date is changing to the current date. Even if I change the excel connection properties also, the file modified date is changing. How can I resolve this issue? I am using Dataflow task and excel source.
I could not find any other solution than setting read-only attribute on Excel and PowerPoint files to avoid that Excel (2010, 2007, 2003) and PowerPoint (2010, 2007, 2003) modify the binary data stream of the file without changing last modification date on just opening the file for reading and closing without making any change and therefore without explicit save.
I could see on comparing the binary files (*.xls, *.pps) before and after viewing the Excel/PowerPoint file with last modification date unchanged, but byte stream changed with (PowerPoint) or without (Excel) a change of file size, that those 2 applications from the Microsoft Office package always record in the file the name of the user who last opened the file, even when the file was not modified at all.
Microsoft Word (2010, 2007, 2003) does not modify the byte stream of *.doc files on just opening the document for reading. I could see this behavior only on Excel and PowerPoint.
I have not tested if other versions of Excel and PowerPoint than from Office 2010, 2007, 2003 make changes on file contents on just opening the file for viewing.
I would be really interested in if there is a registry value which could be set to avoid the modification of Excel and PowerPoint files on just viewing them.
See also How to prevent Excel from modifying the file on exit?

HTML/CSS Editor with Multi-Computer Code Folding

I'm looking for a code editor that saves folded/collapsed code. I want to be able to open the file on a 2nd computer and have the same folded/collapsed code structure. I understand that HTML/CSS cannot have this preference built in. If the editor needs to save the file in some propriety file type, I'm fine with that. I just need to be able to export it as plain HTML/CSS files once it's ready for publishing.
(Windows 7)
UltraEdit supports code folding for text files of any type and it supports also saving/restoring of folds on close/open.
In menu Advanced there is the menu item Configuration. In the settings tree navigate to Editor Display - Code Folding and enable at least the settings Save folded lines and Enable show/hide lines and code folding.
By default UltraEdit remembers which file are open with which lines hidden/folded on exit in file uedit32.ini stored on Windows computers by default in directory %APPDATA%\IDMComp\UltraEdit\. But this file contains also all other user configurations like the 2 settings I wrote above.
Therefore it is better to use a project or at least a workspace for editing the HTML/CSS files for your website(s). A project/workspace can be created in menu Project with New Project/Workspace. Using a project/workspace results in remembering which files are open on closing the project in a separate project related workspace file instead of uedit32.ini. The workspace file remembers not only the open files on closing the project, it remebers also which lines are folded, where the caret is positioned in each file, which file was the active file on close, and some other information to restore the workspace on next opening of the project/workspace.
But before creating the project/workspace, you need to enable the setting Save project information for use on multiple systems at Advanced - Configuration - File Handling - Advanced. As you can read on help page opened by clicking on button Help of this configuration dialog, this setting results in storing the workspace file of a project in same directory as the project file.
The location of the project file is defined by you on creating the project/workspace and is quite often in root directory or a subdirectory of a local copy of a website. With *.prj (the project file) and *.pui (the project user interface file = workspace file) somewhere in directory tree of the website, you have those 2 files also shared between multiple systems together with the HTML and CSS files.
See the user forum topics Create project from an existing directory tree? and Why save files to a Project? in the user-to-user forums of UltraEdit and take also a look on Tutorials/Power Tips page of IDM Computer Solutions, Inc.
SynWrite (Windows) supports it. Make some folding, then save a session file (*.syn). This file contains folded states and more. Anytime later, just open session file (menu File - Sessions) and folding (and more) restored.
You have a CSSMENU editor where you can create menu bars. This editor saves a file in such a way that it can be moved to any other pc as you mentioned . Html file will be saved and the related Css files are stored in another folder where you can move those files as your wish. No need of changing any code.

Force delete a file using SSIS on a network location

I am facing a problem while deleting a file on a network location using SSIS, since its a zip file, contains monthly SQL Database backup file, so I need to delete the last month file before copying current month file.
May be there is some app which were using this file, I am not sure, but I wanna get rid of this file, so that I can copy new file.
Thanks
Use a file task and you should be able to delete pretty much anything on any location as long as you have the rights to do so.

Print MS Access report to .xps file using VBA

I am using MS Access 2003 and have seven different reports I have to distribute each morning, and I currently do that manually by printing each to an XPS file. The default printer for each report has been set to XPS file, and I tried this code:
DoCmd.OpenReport ("rptDaily_1of7")
DoCmd.PrintOut acPrintAll,1,,acHigh,1
When I use that, it does open a Save As box, but .tif is the only option in the "Save As type" field. Even if it wasn't though, ideally I'd like to send the file path and name as a parameter and have it handle the entire process (so I can use a loop to generate all seven files with the push of a button). I'm hoping there's another command I can use to do this, or possibly another method. Note that it's not my machine, and I do not have admin rights to install anything else (like a pdf generator, etc.).
You can create your reports as PDF files using ReportToPDF by Stephen Lebans.
This can be easily automated (there is a MDB with example code in the download) and you don't have to install anything.
It comes with two DLLs which you need to put into the same folder as your MDB/MDE, and that's it. No installation / DLL registering, just distribute the two DLLs with your MDB/MDE.
We are using this at work to print thousands of reports per day from Access 2003.