Print Page | Close Window

Form_CustomSeriesByDefaultProperty

Printed From: Roger's Access Library
Category: Other Download Libraries
Forum Name: Tejpal, A.D.
Forum Description: A.D. Tejpal's Library
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=471
Printed Date: 23 Oct 2017 at 8:21pm


Topic: Form_CustomSeriesByDefaultProperty
Posted By: A.D. Tejpal
Subject: Form_CustomSeriesByDefaultProperty
Date Posted: 02 Jul 2009 at 6:05am

Form_CustomSeriesByDefaultProperty
Updated On 28-Jul-2012  (Plain number series added)

Explanatory Notes

    This sample db demonstrates a novel approach involving generation of value sequence via a common function embedded as default value property of the bound control carrying such values.

    As the data entry progresses, the default value keeps incrementing as required, without having to undertake any special manipulation via form's current event. Moreover, it is not necessary to use even other form events like Dirty / Before or After Insert / Before or After Update etc.

    Two styles are covered:
    1 - Plain Number Series.
    2 - Alpha-Numeric Series (Number series with text prefix) 
 

    The prefix is selected via combo box on the main form. Whenever, a new prefix is selected, the newly displayed default value on the subform gets set 1 higher than the existing highest in alpha-numeric sequence pertaining to the selected prefix. If there is no existing entry with the given prefix, the default value gets set to prefix followed by 000001.

    Type of prefix can be selected via the option group as follows:
    (a) Prefix by combo box selection. 
    (b) Prefix as per current year (yyyy)
    (c) Prefix as per current year month (yyyymm)

Version: Access 2000 file format.

Reference: Nothing extra.

Download >>:  http://www.rogersaccesslibrary.com/forum/uploads/37/Form_CustomSeriesByDefaultProperty.zip -  
 


-------------
--

Email: mailto:adtejpal@gmail.com - adtejpal@gmail.com



Print Page | Close Window