Movian
07-05-2012, 08:18 AM
Hey,
I am trying to setup a quick an reliable Export Import System for single records. after some google searching i discovered the docmd.transfertext command.
However it doesn't seem i can use an SQL statement in the 3rd field to provide the table and record i wish to export.
DoCmd.TransferText acExportDelim, , "SELECT * FROM tblPatient WHERE [MedicalID#] = '" & Me.MedicalID & "'", saveloc
I essentially need this to create a backup as somehow one of my clients employees is deleting the information from this table. Need a quick way for them to restore single records.
Any help appreciated, hoping for a response ASAP!
I am trying to setup a quick an reliable Export Import System for single records. after some google searching i discovered the docmd.transfertext command.
However it doesn't seem i can use an SQL statement in the 3rd field to provide the table and record i wish to export.
DoCmd.TransferText acExportDelim, , "SELECT * FROM tblPatient WHERE [MedicalID#] = '" & Me.MedicalID & "'", saveloc
I essentially need this to create a backup as somehow one of my clients employees is deleting the information from this table. Need a quick way for them to restore single records.
Any help appreciated, hoping for a response ASAP!