Results 1 to 4 of 4
  1. #1
    kaito is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2021
    Posts
    2

    Data entry in Acess app


    Hi guys, I need your advice
    I have one form with fields [name_surname][adress][date_of_birth] bla bla bla and [Cell_Number] [ID Number]

    When entering data [cell number] I wanna write vba code in order to when writing in [cell number] field, first number 9-...-..-.. automatically
    and the remaining 7 numbers will be manually

    [ID Number] that came from [date_of_birth]
    For example [Date_of_birth] field
    x1x2-y1y2-z1z2z3z4 z4z3y1-y2x1x2 ... ...

    10.05.1999 990 510 ... ...


    i.e first 6 numbers should be filled automatic that comes from [Date_of_birth] field, and the remaining 6 numbers will be manually

    I sure could use your helps guys



  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    FWIW I would advise against joining data in a field. IMHO it would be better to keep the data separate in the table and concatenate when/wherever it is required.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    Agree with Bob, keep the fields separate. And use the autonumber PK for your ID field

    Suggest take a look at using the input mask for your cell number

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    As others have advised, keep your fields atomic --1 field, 1 fact. You can combine, format etc with query or vba when necessary.

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

Similar Threads

  1. Replies: 7
    Last Post: 05-17-2019, 04:39 PM
  2. Replies: 4
    Last Post: 12-21-2015, 10:57 PM
  3. exporting data to acess to access
    By 1967chris in forum Import/Export Data
    Replies: 3
    Last Post: 06-10-2015, 08:06 AM
  4. Replies: 7
    Last Post: 03-05-2015, 07:34 AM
  5. Replies: 5
    Last Post: 03-09-2014, 07:16 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