Results 1 to 8 of 8
  1. #1
    tmadrid3 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2013
    Location
    NM
    Posts
    4

    building forms

    I am building a database from scratch. It should be simple because I want people to fill in the form even if they have never used access

    On the form how do I set it up so that the entry for "Location" and "Date" populate from a table that I created. the reason I want it to populate is because I am a contractor for my city "Albuquerque" and when I put entires on the form I am only going to have Albuquerque entiries...but when some one else enters their list they will be in a different city and they will only have entiries for their city.

    I have a table for all the event locations and the date they occur.
    I have a different table that the form will populate?



    Help
    First time building a database, but I have worked with an already existing database and I know there are great ways to get this to work

  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
    53,630
    User needs to provide the location info. This can be part of some kind of login procedure. User identifies location when they open the db and code saves this value and then uses it when records are created, also use it to filter existing records. Login procedure is a common topic in forum. Search here or on web.

    Or you can hard code a location into the database before you hand over to user.

    The point is, Access can't read minds. If you want records to auto-populate, have to tell Access with what.

    Why would date come from a 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
    tmadrid3 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2013
    Location
    NM
    Posts
    4
    Great!
    Login sounds like a good option

    Date is important because we are entering names of students who attend an event, only happens 1 time per month in different cities on different dates.

    So I would enter data for Albuquerque on the following dates 10/23/2013. 11/20/2013, etc
    and another person would enter Santa Fe data on the different dates, 10/24/2013, 11/21/2013, etc
    Data would be similar such as Name, grade, teacher, school, etc

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    If you have a table of these events, then could just enter the ID of that event record into the Registration table. Select the event in a combobox. Then code behind combobox can set DefaultValue property which will then populate subsequent records in the session with the value. No 'login' required.
    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
    tmadrid3 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2013
    Location
    NM
    Posts
    4
    I am reading up on login forms, maybe that is too much for what I want
    Is there a way I can make the text box remember what I put in last, for example I enter my "city" and "date" in the field and all the other fields...then I go to the next for and enter "c" and it automatically populates "city"

    This is what excel does when you enter the same text in the next cell, it remembers what you had already entered and instead of you typing out the whole city name you can put the 1st letter and then select it

    OR I could do this
    I have a table with a list of 5 cities, can my form have a drop down list of those five cities so all I have to do is just select from that drop down?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    See my previous post, which I was typing and posted just before you posted.
    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.

  7. #7
    tmadrid3 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2013
    Location
    NM
    Posts
    4
    Sounds exactly like what I want to do (after deciding the login is too much).

    Can you break this down for me a little more so I can figure it out?

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    Form in design view, create combobox, give it a meaningful name like cbxLocation, with the combobox selected, on the Properties Sheet Event tab > BeforeUpdate event, click the ellipses (...) to open the VBA editor, type code in the procedure.

    Me.cbxLocation.DefaultValue = Me.cbxLocation
    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. Building Forms Right
    By mjhopler in forum Access
    Replies: 1
    Last Post: 10-01-2013, 03:15 PM
  2. Help with building forms
    By DariusD in forum Access
    Replies: 23
    Last Post: 12-29-2012, 10:47 PM
  3. Replies: 4
    Last Post: 07-13-2012, 01:41 PM
  4. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  5. Building
    By jlech1805 in forum Access
    Replies: 1
    Last Post: 11-17-2010, 12:10 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