VBA Access export code module to folder
问题 I am trying to get Access VBA to copy one of its modules out to a folder - I have looked at the other threads / google and no joy - what do you think? Code below Sub copy_out_module() Set appAccess = New Access.Application Set dbsCurr = appAccess.CurrentProject Const ModulePath As String = "C:\Users\Sjohn\Documents\Components\" dbsCurr.Item("Module2").Export ModulePath End Sub 回答1: Your last line dbsCurr.Item("Module2").Export ModulePath can't run (Err. 438 Object can't admit property or