Module Import or Export (1 Viewer)

access2010

Registered User.
Local time
Today, 09:01
Joined
Dec 26, 2009
Messages
1,021
We are going to hire a person to update one of our MsAccess forms.

Should we have the programmer update the form in a new Module and this way we could Import the New form and Module into our existing database and have it work?

Comments are appreciated.
Nicole
 

Ranman256

Well-known member
Local time
Today, 12:01
Joined
Apr 9, 2015
Messages
4,337
you can use the access menu:
external data
datasource
from Access
import
select the db to import from
select the modules & forms to import
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:01
Joined
Feb 28, 2001
Messages
27,187
That is actually a very difficult question to answer as it depends on a lot of factors. Also, technically, when you build a form, you build the Class Module for that form at the same time. To Access, they are in one sense inseparable. If the form has to deal with data in the main DB, your programmer will have to have a working copy of the data tables somewhere as a test-bed. Here's a link or two:




These three links will lead to a discussion of how you develop while users have live activities going on. Links withing the links will give you a lot of reading matter, but it may help you orient yourself to a viable setup.
 

access2010

Registered User.
Local time
Today, 09:01
Joined
Dec 26, 2009
Messages
1,021
you can use the access menu:
external data
datasource
from Access
import
select the db to import from
select the modules & forms to import
Thank you Ranman246 for your comments.
Previously, we would import the modified form and then the code on the form as separate items. But this process nearly almost always left out some of the code.
PLEASE confirm that that this is the way we should proceed?
We will now try for the FIRST TIME to have the programmer put all of their code into a separate Moduale and then we would A=Import the new form and B=Import the Modual with all the code.
I appreciate your comments Nicole
 

access2010

Registered User.
Local time
Today, 09:01
Joined
Dec 26, 2009
Messages
1,021
That is actually a very difficult question to answer as it depends on a lot of factors. Also, technically, when you build a form, you build the Class Module for that form at the same time. To Access, they are in one sense inseparable. If the form has to deal with data in the main DB, your programmer will have to have a working copy of the data tables somewhere as a test-bed. Here's a link or two:




These three links will lead to a discussion of how you develop while users have live activities going on. Links withing the links will give you a lot of reading matter, but it may help you orient yourself to a viable setup.
Thank you The Doc Man, Zayde for your comments which we ALWAYS appreciate.
Nicole
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:01
Joined
Feb 28, 2001
Messages
27,187
Previously, we would import the modified form and then the code on the form as separate items. But this process nearly almost always left out some of the code.

IF the code is part of the form's Class Module (rather than in a general module) you should be able to do what RanMan256 described. IF, on the other hand, the code is developed in a separate module, you were not just developing a form. Code in a separate module can't directly be used for any event code. It can be CALLED by VBA from an event routine, but the event routine link from a form cannot be to a general module unless you built a public function - which CAN be event-triggered in some cases.
 

MarkK

bit cruncher
Local time
Today, 09:01
Joined
Mar 17, 2004
Messages
8,181
Should we have the programmer update the form in a new Module and this way we could Import the New form and Module into our existing database and have it work?
If was your programmer, I would ask for the whole system, your FE and your BE. I would then make the requested changes to the FE. Then I would return the FE to you for testing, with an incremented version number, and a description of the changes made under that version number. If you are happy with the work, then you would simply replace the entire FE on any computers that require the change.
 

access2010

Registered User.
Local time
Today, 09:01
Joined
Dec 26, 2009
Messages
1,021
I wish to thank you all for your suggestions and everything was imported into our existing database without a problem.

Nicole
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 12:01
Joined
Feb 19, 2002
Messages
43,275
Should we have the programmer update the form in a new Module and this way we could Import the New form and Module into our existing database and have it work?
No. The first task is to split the application into a FE and a BE. The BE (back end) holds only data tables. The FE (front end) hold all the forms/reports/macros/code and links to the tables in the BE.

Once the application has been properly split, the second task is to create a distribution method so that each user has his own personal copy of the FE that links to the BE.

If the person you hire does not understand how to do either of these two things, do NOT hire him. find someone else.

Once the app in its current state is properly set up, then your new programmer can begin to work on changes. You need a method of sharing the testing version so you can test his changes and approve them. Then they can be distributed to the rest of the team for use with production data. This allows you to see frequent, small, upgrades as the programmer works through your task list.
 

Users who are viewing this thread

Top Bottom