I need to process the source code associated with the forms
outside access, and import the changes back to Access.
I find that I can export the source code of a form, but when I
subsequently import it, even with no change, I get a message saying
the module name is illegal. If the form is named Form_NewParticipant,
the export file gets named Form_NewParticipant.cls, and when I reimport
it, the error message quotes the name "Form_NewParticipants1.cls",
(notice the digit '1') and says module names may not start "Form_".
The form is not associated with a module (as far as I can understand).
In the project browser, the forms appear in the folder "Microsoft
Access Class Objects", not under the folders Modules or Class Modules.
The top of the export file reads:
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "Form_NewParticipant"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
and then follows the code I usually see in the code editor.
I first tried changing the file name, got same message. Then changed
the "Attribute VB_Name" removing the Form_ part, and I got a new class
module, instead of updating the form's code.
I have 43 forms, and having to copy and paste each separately is a
nissance, because I will have to do this frequently.
Any suggestion?
Thanks.