You are on page 1of 1

Private Dim RST Dim fso Set fso

Sub ACTIVAR_Click() As Recordset As Object = CreateObject("Scripting.FileSystemObject")

Set carp = fso.GetFolder("C:\Users\Admin\Documents\My Games\Skyrim\Saves") Set RST = CurrentDb.OpenRecordset("SELECT * FROM CHARS WHERE RUTA='Saves'") RST.MoveFirst carp.Name = "Saves - " & RST![PERSONAJE] RST.Edit RST![RUTA] = "Saves - " & RST![PERSONAJE] RST.Update Set carp = fso.GetFolder("C:\Users\Jaime\Documents\My Games\Skyrim\" & RUTA) carp.Name = "Saves" Set RST = CurrentDb.OpenRecordset("SELECT * FROM CHARS WHERE RUTA='" & RUTA & "' ") RST.MoveFirst RST.Edit RST![RUTA] = "Saves" RST.Update End Sub