Results 1 to 6 of 6
  1. #1
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45

    How do I show records from other table in a form based on an existing field?

    I'm trying to build a immunizations record database. I have my form to enter the immunizations but I would like it shows me what vaccines need to be given based on recommended vaccines for the age. I can enter all the imunization information but then I don't know which vaccines I need to add. I would need to look in the vaccine table but I would like that it shows in the form.





    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Could have a combobox list the vaccines. The combobox list could be limited by the age of the patient. This is called a dependent or cascading combobox because the list is filtered dependent on value in another control.

    Example: http://www.datapigtechnologies.com/f...combobox2.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.

  3. #3
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Actually a combo box was a good idea to use. It works well. Only problem is I would like the months in ascending order..

    I have set up the recomended age as 0 birth, 1 month, 2 month...so if I set this in ascending order then I get 0 birth, 18 month, 2 month. Where I would like the ascending to be 0 birth, 2 months and 18 month in that order..

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is this combobox list derived from a table? Need placeholder zeros: 0 birth, 02 month, 18 month, etc, or another field to define sort order.
    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.

  5. #5
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by June7 View Post
    Is this combobox list derived from a table? Need placeholder zeros: 0 birth, 02 month, 18 month, etc, or another field to define sort order.
    How about years? what place holder for years 18 months...1 year ..2 years

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then I suggest you have another field in table to use for sort criteria.
    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. Replies: 15
    Last Post: 11-13-2014, 09:07 AM
  2. Replies: 2
    Last Post: 03-30-2014, 04:57 PM
  3. Replies: 5
    Last Post: 10-20-2013, 09:22 PM
  4. Replies: 5
    Last Post: 05-22-2013, 12:38 PM
  5. Access 2007 - Creating New Records Based on Existing Records
    By GeorgeAugustinePhillips in forum Forms
    Replies: 9
    Last Post: 10-05-2011, 05:58 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