A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

howto - "modularize design" of front-end application ??



 
 
Thread Tools Display Modes
  #21  
Old October 8th, 2008, 03:48 PM posted to microsoft.public.access.gettingstarted,microsoft.public.access.setupconfig,microsoft.public.access.tablesdbdesign
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default howto - "modularize design" of front-end application ??

david@epsomdotcomdotau wrote in message
...

So code in your library does not normally open forms
or reports in your CurrentDB -- If you want that, perhaps
you would use a Add-In instead of a library.


Have a look at my earlier reply in this thread for an example of code to
open a form from a referenced library database in the current one.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


  #22  
Old October 11th, 2008, 12:39 AM posted to microsoft.public.access.gettingstarted,microsoft.public.access.setupconfig,microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default howto - "modularize design" of front-end application ??

Yes, the add-in would only be used as a library to open
a form from the CurrentDB.

If you want code from the CurrentDB to open a form
from the library, you would use a reference.

(david)

"Arvin Meyer [MVP]" wrote in message
...
david@epsomdotcomdotau wrote in message
...

So code in your library does not normally open forms
or reports in your CurrentDB -- If you want that, perhaps
you would use a Add-In instead of a library.


Have a look at my earlier reply in this thread for an example of code to
open a form from a referenced library database in the current one.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com




  #23  
Old October 13th, 2008, 09:03 PM posted to microsoft.public.access.gettingstarted,microsoft.public.access.setupconfig,microsoft.public.access.tablesdbdesign
Bob[_39_]
external usenet poster
 
Posts: 35
Default howto - "modularize design" of front-end application ??

On Oct 8, 9:29 am, "Arvin Meyer [MVP]" wrote:
Here's an example. Three of the 12 databases required the contractors form
which had tons of code in it for validation. Instead of trying to maintain
that form in 3 places, I put it in a CodeDB which I referenced on all 3
databases. A module maintained code to open the form:

Public Sub OpenContractors()
On Error GoTo Err_Handler
DoCmd.OpenForm "frmContractors"
Err_Handler:
ErrorSub
End Sub

You'll find the error handling code at my website:

http://www.datastrat.com/Code/Error.txt

Now in each of the 3 databases, a button had the following code:

Public Sub cmdContractors_Click()
' Code from CodeDB.mde
OpenContractors
End Sub

Simple, easy.
--
Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.mvps.org/accesshttp://www.accessmvp.com


Wonderful!
TYVM, Arvin!
appreciate the info!
Bob
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.