Results 1 to 2 of 2
  1. #1
    dgutsche is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    35

    Question Auto Complete A Subform


    Hello there. I am a novice access user creating a database with two tables - one of 'Tickets' and one of 'Cylinders'. Each ticket is associated with multiple cylinders. What I am trying to figure out how to do is have fields in the main form (for tickets) generate some of the data in the sub-form (for the cylinders).

    - I want to use the field 'Ticket' in the main form (ie: 1557) and the field 'Number of Cylinders' (ie: 5) to auto-populate 5 records in my sub-form where the values for the field 'Cylinder' in the sub-form are "1557A", "1557B", "1557C", "1557D" and "1557E". This matches our indexing convention used in our materials lab.

    - I want the user to input a date field 'Date Cast' in the main form and then based on the field 'Age' for each record in the sub-form, calculate a future date which will populate in the sub-form's field 'Break Date'.

    I was hypothesizing I could use the Auto-complete characteristic of each field to calculate these values for me. Even if I just get a hint in the right direction that will help me tremendously! By building this rather small database I am hoping to develop skills so that in a couple months time I will be more prepared for replacing the main database used at my work place (which is a massively complex one with several tables and several forms. Thanks so much for the help anyone and everyone!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Fields do not have an Autocomplete. A combobox has AutoExpand property and is not relevant.

    This will require VBA code. Programmatically generating custom unique identifier and creating records are both common topics.
    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. Auto complete between tabs in Form
    By Hamm in forum Forms
    Replies: 3
    Last Post: 10-25-2012, 08:38 AM
  2. auto complete fields
    By mona in forum Access
    Replies: 3
    Last Post: 05-09-2012, 07:41 AM
  3. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  4. Replies: 1
    Last Post: 03-31-2011, 02:51 AM
  5. Auto Complete Data
    By manicamaniac in forum Access
    Replies: 5
    Last Post: 09-14-2010, 03:38 PM

Tags for this Thread

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