Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115

    Backup

    Hi to everyone. I need your help in anticipation for a matter of transparency that are denied with your programming. I would like to know if it was possible to obtain that every record containing data from a database would be inserted one record at a time in a different table. I will give you an example.
    If i have a database composed of record 1.2.3.4 i would like to get four different tables containing the record 1, the record 2 etc etc, a record for table i hope was clear and that it is achievable. Ciao and thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That is not clear but is probably achievable. Just don't understand your data well enough.

    Why is this needed?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    Hello, thank you but i have found a codcie vba that allows me to do the work on power point. If you want i am sending you the code. With print Union amount data on Power Point ( which was then the file final ) Thanks Hello

  4. #4
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    hello In practice i would need to export each record contained in a table in individual tables all of which should contain this record

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You have solution?

    I still don't understand what you are doing.

    May be a language barrier here.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    In practice, I was wondering if it was possible to export individual records in multiple tables, each of which must contain a record. Let me give an example. Let's assume that I have a data table containing 3 record and one field names:
    1 record -> Luca
    2 records -> Marco
    3 records -> John
    I would need them to be created 3 database access and all'intenro of each database, a table containing the records exported
    Here's what I would get
    database access 1 -> Table 1 -> 1 record containing the name Luca
    database access 2 -> Table 1 -> 2 record containing the name Marco
    database access 3 -> Table 1 -> 3 records containing the name John

    Let me explain my request .... a colleague of mine working on Access, a day for whatever reason is not able to open a database + consequently losing a large number of data. The absurd thing is that he had also made copies of the most recent backup but he has not + open.
    I hope I was clear in explaining
    thanks
    Hello

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you know the exact names to use as filter criteria, run MAKE TABLE sql actions.

    A VBA procedure could definitely create a table for each distinct name encountered in the original table.

    Not understanding how that helps your colleague with their issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    Hello, I do not need to be named with the names of the tables present in the source table. To me it is enough that the databases created were numbered and that each database contains a record of the source table.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I did not mean the tables would be named with names from the source table, name the tables whatever you want. Code can create tables of records for each distinct name found in the source table.

    Just do not understand how splitting up a table resolves issue. Seems it will cause more problems later.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    It is perfect .... I say that this would serve as a backup. In practice, if it happens that the database (as happened to my colleague) should fail impendentone the opening, I will be able to recreate it by bringing together the various records. What I could use is that either the table or the database were appointed by the record ID
    Thank you very much

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you are using autonumber field as linking primary/foreign key to relate parent and child tables, this 'backup' concept will be tricky at best and fail altogether at worst.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    The record also contains a text field containing an ID (I did not use the meter as a function)
    I attach an example so I can explain.
    The mdb called "source" contains the table containing all records, while the mdb "0001" and "0002" and what I would get
    Thanks much
    Attached Files Attached Files

  13. #13
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want to save data out to separate database files? Never heard of anything like this. Seems like you are making life harder with this idea. Why not just create a backup file of the original database?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  14. #14
    sergran is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    115
    It is exact ... I know it may sound absurd but as I speigato before, happened to my colleague who has ruined the access database and also saved with the backup copy you do not know for what reason (I think the same reason that ruined the original was also damaged the backup copy) there were no more open resulting in loss of data ... a disaster. For this reason, although make periodic backup (I may be paranoid) I'd rather find a way to copy a record for mdb that I can gather in a case similar to what happened to my colleague

  15. #15
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That event might have been freakish and will never happen again in which case your new approach is over-reaction and an overkill solution. So be it. If you want it, it can be done. Here is an example from my db where I create a new db file, create tables in it, and populate the tables.

    Public Sub ConstructionExtract()
    'exports data to ConstructionExtract Access file
    Dim strExtract As String
    Dim Catalog As Object
    strExtract = gstrBasePath & "Program\Editing\ConstructionExtract.accdb"
    'delete the existing db
    If Dir(strExtract) <> "" Then Kill strExtract
    'create new database
    Set Catalog = CreateObject("ADOX.Catalog")
    Catalog.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strExtract & ";"
    Set Catalog = Nothing
    'import tables to the ConstructionExtract Access file
    CurrentDb.Execute "SELECT * INTO Bituminous IN '" & strExtract & "' FROM ConstructionBIT;"
    CurrentDb.Execute "SELECT * INTO BituminousMD IN '" & strExtract & "' FROM ConstructionBMD;"
    CurrentDb.Execute "SELECT * INTO Concrete IN '" & strExtract & "' FROM ConstructionCONC"
    CurrentDb.Execute "SELECT * INTO Emulsion IN '" & strExtract & "' FROM ConstructionEMUL;"
    CurrentDb.Execute "SELECT * INTO PGAsphalt IN '" & strExtract & "' FROM ConstructionPG;"
    CurrentDb.Execute "SELECT * INTO SoilsAgg IN '" & strExtract & "' FROM ConstructionSA;"
    CurrentDb.Execute "SELECT * INTO SampleInfo IN '" & strExtract & "' FROM ConstructionSampleInfo;"
    End Sub
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Automatic backup
    By timpepu in forum Access
    Replies: 4
    Last Post: 08-14-2012, 01:38 PM
  2. backup from my data
    By smahdih in forum Access
    Replies: 3
    Last Post: 11-06-2011, 12:03 AM
  3. Can't backup Db
    By wislndixie in forum Access
    Replies: 1
    Last Post: 08-19-2011, 01:36 PM
  4. Backup of forms
    By torunsu in forum Access
    Replies: 1
    Last Post: 08-08-2011, 08:38 AM
  5. Ezy BackUp
    By FogLine in forum Programming
    Replies: 0
    Last Post: 07-04-2010, 06:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums