Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11

    Access Newbie Question


    I am new to Access and I need some help with this simple question. I have a table with a list of employees and another table where I will be storing the records of said employees (safety infractions, truancy, etc.). I have created a form to enter in the employee record data with a combo box that drops down to list the employees (from employee_list table). The combo box displays the employees correctly, but I am having trouble figuring out what to put in the control source property. What do I put in here to save this selection into a table?

    Thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would expect the form to be bound (record source) to the infractions table, and the combo to be bound (control source) to the employee ID field in that table. Thus the control source of the combo would be the field name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11
    I am so glad I posted here as I am already making progress. I didn't know about the record source property. This seems to be working OK now with the exception of it constantly overwriting record #1 during a save operation. How can I same each record to a new ID #?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    A form by default shows all records in the table and opens to the first one. Sounds like you want to change the Data Entry property of the form to Yes.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    Quote Originally Posted by pbaldy View Post
    I would expect the form to be bound (record source) to the infractions table, and the combo to be bound (control source) to the employee ID field in that table. Thus the control source of the combo would be the field name.
    Doesn't that mean that only employees with an infraction will appear in the combo list? Shouldn't the employee list come from the employees table?

    nc; if you bind a combo to a field and play with its selections then move off the record or close the form, any changes become the new value for that field in the affected record. If you don't want that, you either have to understand that you must not alter the selection unless you are performing an edit, or don't bind the combo to the field. This is common practice for combos that provide lookup lists or perform filtering for form records. In the latter case, you have to write the value to the table by macro or code.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Micron View Post
    Doesn't that mean that only employees with an infraction will appear in the combo list? Shouldn't the employee list come from the employees table?
    No, that's determined by the row source property, as I'm sure you're aware. The OP already has that working: "the combo box displays the employees correctly".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    I guess I misunderstood your comment.
    form to be bound (record source) to the infractions table, and the combo to be bound (control source) to the employee ID field in that table
    which I took to be a source different from
    I have a table with a list of employees

  8. #8
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11
    Quote Originally Posted by pbaldy View Post
    A form by default shows all records in the table and opens to the first one. Sounds like you want to change the Data Entry property of the form to Yes.
    I have made this change, but still having the same issues. Would try to save multiple instances of the same employee name have anything to do with it?

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    NC, Tell us about the table(s) you have now. It would be helpful to readers if you gave us a 30,000 ft overview of the proposed "business" that this database will support. The types of infractions; any queries or reports you need.
    Welcome to the forum and good luck with your project.

  10. #10
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11
    Quote Originally Posted by orange View Post
    NC, Tell us about the table(s) you have now. It would be helpful to readers if you gave us a 30,000 ft overview of the proposed "business" that this database will support. The types of infractions; any queries or reports you need.
    Welcome to the forum and good luck with your project.

    Table One titled "Employee_List" This table has ID numbers and employee names. I will draw from this employee list to populate a combo box on the input form
    Table Two titled "Records" This table will store the employee name, date of incident, and some other data that will be entered by the user on the input form

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by negative_creep View Post
    I have made this change, but still having the same issues. Would try to save multiple instances of the same employee name have anything to do with it?
    Can you attach the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11
    Quote Originally Posted by pbaldy View Post
    Can you attach the db here?
    The file size is too big, and when I zip/compress it, the forum doesn't like the file type.

    How can I get it attached?

  13. #13
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  14. #14
    negative_creep is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jul 2019
    Posts
    11
    Quote Originally Posted by orange View Post
    Following this process, my file size is still too large to upload. Its capped at 500k

  15. #15
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Did you zip it? The limit for zip files is 2MB.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2018, 12:37 PM
  2. Replies: 2
    Last Post: 05-01-2014, 06:51 PM
  3. Newbie question about Access Web Compatibility
    By mikeone610 in forum Access
    Replies: 1
    Last Post: 01-28-2014, 04:33 PM
  4. Replies: 6
    Last Post: 07-02-2013, 11:28 AM
  5. Replies: 8
    Last Post: 04-25-2012, 11:30 AM

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