Results 1 to 5 of 5
  1. #1
    cougardoogan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    Talking Drop down for both attendee and department


    Hello all.

    I am new to this form, but not new to access - not a novice in it, but not an expert either, I would say intermediate - intermediate/advanced.

    Anyway, My office provides training for different departments (companies), and I downloaded the template "Event management database" (found here: http://office.microsoft.com/en-us/te...ai:TC001017829|) and customized it here and there to keep track of who has been coming to the training, what department they're from, and what training they've been to and when. I added a drop down menu to the top of the Attendees form to be able to find the participants easier when their supervisor calls/emails to register them for an event.

    It seems to be working good, except when we have to enter new participants. Sometimes we can get a stack of new particpants, anywhere from 3-10, and we have to put them in the system. For each participant, we have to manually type in their department, department address, contact, phone number, etc. - information that is the same for all the contacts.

    I'm wondering if there is an easy way this can be updated, such as another drop down menu that would list all of the department names, and then automatically fill in their addresses, phone numbers, and contacts.

    The real trouble I'm having is that a particular person will type in the department name, but abbreviate it, and when I print out reports, it will show the department twice, the abbrivated way and the spelled out way (this database is only updated by myself an another person)

    Any help or guidance is greatly appreciated! Thanks!!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Have a table for the department info and then just select the DepartmentID and save that in the participants table. No need to repeat the associated department data into the participants table.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I agree with June7's approach, for this particular scenario, but FYI, to 'carry Values forward' to the next New Record, you can use the AfterUpdate event of the Control holding your data to set the DefaultValue for the Field. From that time forward, until you either manually change the data or close your form, the data will be entered automatically in each New Record.

    Code:
    Private Sub YourControlName_AfterUpdate()
       Me.YourControlName.DefaultValue = """" & Me.YourControlName.Value & """"
    End Sub
    You’ll need to do this for each Control that you want to ‘carry forward.’

    Note that this code/syntax can be used for any Datatype.

    Linq ;0)>

  4. #4
    cougardoogan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2
    I read both of your responses, which I'm greatful for, but still have a puzzled look on my face on how to go about doing it in the main form. My main thought is associating the participants with the department, but still being able to use the drop-down menu to find the participants... I'm not able to wrap my head around it fully right now, maybe if I come back to it in a couple days...

    Thanks for your help, though!

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Maybe a review of this tutorial on relational database principles will clarify my suggestion http://forums.aspfree.com/microsoft-...es-208217.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.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-30-2011, 01:20 PM
  2. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  3. Fire department forms
    By pentabarf in forum Forms
    Replies: 10
    Last Post: 09-21-2010, 08:00 AM
  4. Replies: 2
    Last Post: 08-29-2010, 12:30 PM
  5. cascading drop down
    By ManvinderKaur in forum Forms
    Replies: 1
    Last Post: 06-23-2010, 05:31 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