Importing a module into access programmatically from a *.cls or similar file -


if open microsoft access, open visual basic window can see list of modules , code in access project. can drag text-based file (txt, cls, bas, etc) windows explorer , drop module folder.

this drag , drop action import code in text-based file project , prompt save (with default name being name of file dropped.

is there way programmatically using vba? seems simple task should have simple solution, i've been researching days , can't seem find simple way it.

yes, that's command loadfromtext use.

usage:

loadfromtext acmodule, "nameofobject", "filename" 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -