Go Back   DeveloperBarn Forums > Databases > Microsoft Access

Sponsored Links

Discuss "Intro to Modules / Public Functions" in the Microsoft Access forum.

Microsoft Access - Microsoft Access is a database for small to medium applications. Learn tips and tricks and best database practices here.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old July 10th, 2008, 12:58 PM
sbenj69's Avatar
Moderator

 
Join Date: Mar 2008
Posts: 84
Thanks: 20
Thanked 24 Times in 19 Posts
Rep Power: 1
sbenj69 is on a distinguished road

Awards Showcase
Microsoft Windows Microsoft Access 
Total Awards: 2

Default Intro to Modules / Public Functions

The database at the bottom of this post is just a sample database that will give you an introduction on how to use and code public functions.

Often, when one mentions "module", or "public function", people tend to cringe, thinking of how complicated the database will be. In all reality public functions can be extremely simple, as per these examples.

I like to use public functions for repetitive tasks that have to be re-coded over and over. Well, instead of coding the same 2 or 3 lines over and over, I like to throw them into public functions that can be called from anywhere.

Anyhow, here is the database:

Edit: I updated the database to fix an issue with the middle initial, if null would still include the period on the full name function. Also cleaned up the functions and subs just a hair.
Attached Files
File Type: zip Intro2Modules.zip (65.1 KB, 8 views)

Last edited by sbenj69; July 12th, 2008 at 10:46 AM.
Reply With Quote
The Following 2 Users Say Thank You to sbenj69 For This Useful Post:
AOG123 (July 10th, 2008), boblarson (July 12th, 2008)
Sponsored Links
Reply

  DeveloperBarn Forums > Databases > Microsoft Access

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript Functions Reference jmurrayhead ASP Development 25 October 21st, 2008 08:31 AM
[Basic Tools] An intro to making complex databases using simple methods. sbenj69 Microsoft Access 3 June 27th, 2008 12:09 AM
Accessing a Public Property in a web service richyrich .Net Development 0 May 23rd, 2008 08:42 AM
Date Functions Listed By Name AOG123 Microsoft Access 0 May 16th, 2008 08:22 AM
String Functions Listed By Name sbenj69 Microsoft Access 0 April 3rd, 2008 10:17 PM


All times are GMT -4. The time now is 03:14 PM.



Content Relevant URLs by vBSEO 3.2.0