Results 1 to 7 of 7
  1. #1
    burak is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    turkey
    Posts
    3

    question and help needed


    Hi everyone,

    I've designed a form in access 2013. My problem could be explained briefly as;

    I want to an automatic numeric code (-which listed in a table connected to main form and main table-) indication in one box of the form; when I will enter the data such as name or department in another field (-which also listed in another table connected to main form and main table-) of the form. For instance;

    I enter "the name", than automatically "the code" screening in other box of the form.

    Thanks a lot to everyone for helpfull contirbutions,

    Burak

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    So, basically you want a counter. You can do this many ways. You could generate a Unique code based on another value.I don't have enough details to suggest anything else.
    Example:
    Me.MyTextbox = Nz(DMax("SomeField", "SomeTable") & Format([SomeField], "0000") + 1)
    UniqueNumber = Nz(DMax("SomeField", "SomeTable") + 1) 'Increment Number By One.

    HTH

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Do you want to create a unique ID or do you want to select data and save existing ID?

    Maybe you need a multi-column combobox http://www.datapigtechnologies.com/f...combobox3.html.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    burak is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    turkey
    Posts
    3

    help needed

    Thanks a lot for your helpfull contribution. The beta file attached. I basicly need that; if I select in main form i.e. "PR unit" in Sender field and "Exhibition" in main subject field; than automatically "GMD.PG-0100-14" (from sender code table) indication in sender code field and "1940" (from main subject table) in main subject field in main form by saving to main table simultaneously.

    Best regards & thanks again so much ...
    Attached Files Attached Files

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Their is NO GMD.PG-0100-14 in Table SenderCode ? You have 4 values to choose form, what is your criteria for determining which one?

  6. #6
    burak is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    turkey
    Posts
    3

    Red face help needed

    Thanks again Burrina for your help & attention,

    I send to you an excel attachment in order to explain; which "user input data" equals which "automatic display data". The user enter the data in main form "sender" & "main subject" fields than the codes going to indicate in "sender code" & "main code" fields automatically and totally will save to main table simultaneously.

    Regards,
    Attached Files Attached Files

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If MainSubject and MainSubjectCode are synonymous values, then make one table with both fields.

    Same for Sender and SenderCode.

    Then in main table save only SenderCode and MainSubjectCode values, not the descriptive text. Retrieve the descriptive text in queries that join tables.

    You need a better understanding of relational database principles and the use of primary and foreign key fields.

    You are using multi-value fields - I NEVER use multi-value fields.

    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Help needed : Library catalogue in access format is needed
    By dealers in forum Sample Databases
    Replies: 3
    Last Post: 01-16-2014, 02:03 PM
  2. Help Needed
    By nur annie in forum Forms
    Replies: 2
    Last Post: 11-02-2012, 02:56 AM
  3. Help Needed
    By vkmarty in forum Access
    Replies: 1
    Last Post: 09-23-2011, 07:23 AM
  4. Help needed
    By longbo43 in forum Access
    Replies: 3
    Last Post: 09-27-2010, 10:18 AM
  5. Basic question, urgent help needed.
    By fishnu in forum Access
    Replies: 12
    Last Post: 03-18-2009, 01:39 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