Results 1 to 2 of 2
  1. #1
    edwardcga is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    31

    auto populate data on field based on data entered in first field

    Hi:
    I am a newbie in access programming and need help in the following situation:
    I have a main / subform for entering donor contribution. Main form OFFERING, SUBFORM OFFERING_DETAIL.
    In the subform, I have the following columns:

    1st column
    ENVNO (Envelope number assigned for :
    Cash M01 TO M99
    I will enter "M01" for first envelope for CASH envelope, "M02" for next etc.
    SAME applied for Cheque payment which will be from Q01 TO Q99 and VISA PAYMENT which will be V01 TO V99

    2nd column
    PAYT_TYPE (LENGTH = 1, "C" for cash, "Q" for cheque, "V" for VISA)
    This is the field that I want to auto populate
    If first digit of ENVNO is "M", then assign code "C", if "Q", then assign code "Q", if "V" then "V"

    3rd column
    AMOUNT

    enter amount of contribution



    Your help and advice in the above will be much appreciated.

    EW

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If the first character of the field depends on another field, then you don't need the first character. *hint*

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-07-2014, 09:19 AM
  2. Replies: 10
    Last Post: 07-19-2013, 02:05 PM
  3. Replies: 2
    Last Post: 12-18-2012, 11:41 AM
  4. Replies: 3
    Last Post: 07-26-2012, 03:55 PM
  5. Replies: 6
    Last Post: 04-27-2012, 01:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums