Modules & VBA :: Backup / Zip And Email Copy Of Database Programmatically

Sep 11, 2013

I need a way that I can simply have a User click a button on a form of the database and it will do automatically create a zip file of the entire database and start Outlook and attach the zip file and send it to me.....

View Replies


ADVERTISEMENT

Modules & VBA :: Backup Records Programmatically Daily To Another Table

Jan 8, 2014

i have 2tables,table1=productid,ProductName,Qty table2=Productid,productName,Qty,date(). I want to be able to backup Records programatically daily from table1 into table2 OnClose.But i do not want duplication of record in the same day. If changes occurs in table1 after backup,table2 should be updated Programatically.

View 1 Replies View Related

Modules & VBA :: Create Backup For Table In Another Database?

Jan 7, 2014

How to create backup for my table in another DB with VBA ....

View 3 Replies View Related

How To Send Email Programmatically

Feb 1, 2013

I'm using an MS Access 2007 command to open Outlook. I can get it to open, fill in address, subject, and text, but what I haven't been able to conquer is to get it to send without a mouse click on the send button within Outlook.

I want the email to fill in and send without any human interaction at all.

View 1 Replies View Related

Modules & VBA :: Create Backup Of Database On Exit In Different Directory

Dec 20, 2013

I am looking to create a backup of a database on exit in a different directory then where I am storing the database now.

View 3 Replies View Related

Modules & VBA :: Command That Will Create Backup Of Access Database Once Every Week

Feb 24, 2014

Im trying to create a command that will create a backup of my access database once every week. here is the code I've got so far. it works, but not once a week but every time I start the access:

MsgBox ("Hello! Starting Backup procedure")

Dim DateOfBackup As Date
Dim strSourcePath As String
Dim strSourceFile As String
Dim strBackupFile As String
Dim SQL As String

[code]...

View 2 Replies View Related

Email Backup Files

Oct 5, 2014

I am using the following code to backup the tables on my "D" Drive..I want to add a code by which it not only save backup on my drive but also send these files to my email address XYZ@gmail.com

Dim CurrentDay As String
Dim CurrentMonth As String
Dim CurrentYear As String
CurrentDay = Day(Now)
CurrentMonth = Month(Now)
CurrentYear = Year(Now)

[code]...

View 9 Replies View Related

General :: Copy Of Backup File (Automatic Setting)

Aug 27, 2012

AUTOMATIC BACKUP FILE

I have a database that is updated every weekday, every hour. I make a copy of it end of the day so i do not lose that data so far. I wish there was was a way to make a backup copy, say end (once sometime) of the day, automatically.

View 3 Replies View Related

Modules & VBA :: Copy Table To A Password Protected Database

Dec 11, 2013

I'm using the DoCmd.CopyObject method to copy a table from my front end db to my back end. My back end db is password protected and it keeps prompting me for the password. Can I somehow send the password in code so that the user is not prompted?

View 8 Replies View Related

Modules & VBA :: Send Email From Database With Category

Aug 17, 2015

Is it possible to send an email from an access 2007 database with a category?

View 8 Replies View Related

Modules & VBA :: Updating Database - Sending OLE Object Through Email

Jan 23, 2014

I am currently updating an Access database, any way to send an OLE Object (in this case an Excel Spreadsheet) as an attachment to an email address using VBA code? I made a form that shows the Excel Spreadsheet when the record is brought up, but I need to know how to send just the Excel Spreadsheet and not the other information on the form.

Also, if there is an alternate way to have an Excel spreadsheet embedded into an Access form, i'm open to change. The user wants to be able to see the Excel spreadsheet and send it to their supervisor without having to locate the Excel spreadsheet on the hard drive.

View 2 Replies View Related

General :: Programmatically Importing Flat File Comma Delimited To Access Database

Feb 4, 2013

I have one Access Database and i want to import the flat file coming from Cisco Phone Logs, its a comma delimited that contains the column names in the first row, and in the second row, its the data type, then the succeeding rows contains the data of the logs which are in Comma separated values, I want to put it to my created table programmatically,I used Docmd.TransferText but this will not let me define the row which i wanted to start at row 3.

DoCmd.TransferText acImportDelim, , "tblImportTextFiles", Me.txt_SelectedDirectory & "/" & Me.lst_FilesInDirectory, -1

Attached is the text file i received from Cisco Call Log Applications.

View 3 Replies View Related

Modules & VBA :: Database Setup - Send Email From Alternate Account

May 30, 2014

I currently have two e-mail accounts on my computer. One is my default e-mail address with my name on it. The other e-mail account is a generic account with the department name.

I have a database set up to generate and send e-mails to our technicians notifying them when an order they placed gets put on back order. This database could possibly send twenty or thirty e-mails out each time it is run. My manager has requested that the database send the e-mails from the generic e-mail account instead of the default account. That way, when the field replies to the e-mail, they won't bombard my account.

Is there a way to tell the database which e-mail account to send an e-mail from?

I am currently using the below module to send the e-mails:

Option Explicit
Dim appOutlook As Outlook.Application
Dim namespaceOutlook As Outlook.NameSpace
Sub Outlook_SendMail(sEmailAddr As String, sEmailSubj As String, sEmailBody As String, Optional sAttach1 As String, Optional sAttach2 As String)

[Code] ....

View 2 Replies View Related

Backup BE Database

Jul 6, 2005

I recently created a database with an FE and BE, and I want to be able to back up the BE from the FE. In the FE, I added a menu item "Back up database...", and it works good for the FE, but I want it to back up the BE, where the data is located. The reason that I like the menu item is that it opens a "Save Backup As" dialog box, and it also adds the date to the name of the database. Also it will be easier for the people that are using the db.

View 1 Replies View Related

Backup Database As

Jul 10, 2006

what would possibly cause a "Backup Database As" dialogue box to appear? it's the same as the "save as" box and allows you to save a copy of the access file you're working on but it says "Backup Database As" at the top.

it seems to come up periodically and im not sure what might be causing it.

thanks

View 2 Replies View Related

Modules & VBA :: Changing Linked Table Location Programmatically

Dec 18, 2014

I am after a script to change the linked table paths like the following.

It will only ever be the path that is changing not the file name and only ever linked tables

Code:
for each table in tabledefs
if table.path = c:Testing* then table.path = w:Testingfilename
if table.path = c:Jobs* then table.path = w:Jobsfilename
if table.path = c:Quotes* then table.path = w:QuotesNewfilename
next table

View 5 Replies View Related

Backup Database Is 'read Only'

Feb 13, 2006

Hi All,

I created a database in Access and of course password protected the backend version. As a matter of course I backed up the mdb to cd in case of emergency.

Our network has been taken down due to some virus being bought in by a laptop user so I wanted to reinstall the mdb from the cd to my c: drive.

The problem is that the file is saying that it is 'Read Only' which I think is down to the password protection i put on there.

Question:
Is there a way I can get round the security?

I promise I am not a hacker!

Cheers

Smudger

View 2 Replies View Related

Backup Database Online ?

Jun 12, 2006

I read a lot of threads and some KB articles before this, but am still confused.

Can a copy of the BE database be made on the Server while users are logged on ? Max No. of users is 7.

Does copying a BE while work is going on lead to corruption in the database.
Right now i make a copy of the database thru code and then compress the copy for a backup.

View 2 Replies View Related

Modules & VBA :: Sending Mouse Click Event To List Box Programmatically

Aug 31, 2013

I have a form (about patients) containing a listbox (list of visit dates) and a subform (showing medications at that date). When you click on the listbox, the subform is re-queried with the selected date as a parameter to show the medications that were in use on that date. This is working fine.

However, when you move to a new record (patient), the subform is initially blank because the listbox hasn't been clicked on yet. This means that it looks like the person isn't on any medications, which is causing some confusion.

I need a way to have the subform show the "top" (most recent) date because that is the current medication list, and the thing most people want to see first. It is always the top of the list, so I would like to do something like this (pseudocode)

Code:
Private Sub Form_Current()
Forms![MedSearch].SelectDateBox.Requery
Send MouseClick Event to line 0 of SelectDateBox
End Sub

View 2 Replies View Related

Modules & VBA :: Automatically Attach External File To Email Generated By Access Database

Nov 24, 2014

I have an Access 2013 database which will generate a pdf report and attach it to an email using the code:

Code:
DoCmd.SendObject acSendReport, "Report Name", acFormatPDF, Nz(To email address, a), , , "Email Subject", "Email body", True

I would also like to automatically attach on the server to this email. Such a file stored such as servernamesharefilename.pdf. Is it possible to do this?

View 14 Replies View Related

Autiomated BackUp Of Back End Database

Aug 17, 2005

We are currently running a FE / BE splitted database abd would like to back the back end up (to a sepearate location) every 15 minuutes by using the On Timer event.

Troiuble is, I believe I cant use the CopyDataBaseFile method whilst other users are in it and it would be too much hassle kicking everyone off!

Manually copying and pasting is good, but would really like to crack this one

Any suggestions please?

Regards

Andy

View 3 Replies View Related

Search Employees Backup Database?

Dec 16, 2011

Attached i have a Database with 3 Tables.

-Table MA's. is the just a table were you can select if an Analyst is at the office or not. so if the check box is selected the analyst is available.

-Table Backups. We have Alias which is a reference code to a supplier the 1 Analyst and then Backup 1 and backup 2

-Table suppliers are just de supplier details.

what i whould need is when in the MA's table an Analyst is not selected a macro or query should search for backup 1 and replace it. when the backup 1 is not available as wel than backup 2 should be put in place.

When no backups are availeble then a message can put in the cell like"No Backup Available'.

This result can be put in a new table named. Decksplit with then the Supplier Alias, Supplier Name, Analyst

View 4 Replies View Related

Making Daily Backup Of Database?

Oct 29, 2013

As my database is growing and hold more and more data i want to make a daily backup to the local hard disk (it works on a network now) automatically.The way i want it to work is as follows :

When a user quits the application i want to check if there is a copy already existing with the date of today.

If it does it skips the copy process and just quits.

If it doesn't, i want it to make a backup in a directory. if the directory doesn't exist it must be made.

The backup file name must hold the date of today off course.

I realize that i have to have a procedure to delete obsolete (outdated) backups as well, but ill worry about that later.

Off course Ive tried this a few times, otherwise i wouldnt ask it here. But i seem to fail every time..

View 5 Replies View Related

Backup Database By Use Of Command Button On Switchboard

Sep 3, 2004

Is it possible to create a command button on an Access switchboard that will automatically backup a database? What code would I need? The command button wizard doesn't handle this task.

View 14 Replies View Related

General :: Backup Database At User Side

Oct 4, 2012

I have developed an access database, and prepared its run time exe file. My question is how to develop the database so that the user can regularly backup the database?

View 1 Replies View Related

General :: Backup Database Automatically Per Week

Jul 29, 2013

I want backup my database automatically per week,what should I do?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved