frosty2000
Technical User
Hello!
I am new to Access and have little programming knowledge, so any help you can provide would be much appreciated!
I am creating an employee database to track employee demographics and their dependents' demographics (i.e. name, Soc Sec #, birthdate, etc). I have a main form ("Employee Demographics") to input all of the employee data, and I have a subform in datasheet view("Dependent Demographics") to input all of the dependent data. The two are linked by the Employee Soc Sec #.
However, because of the way I need to set up the queries to provide data to our outside vendors, the employee demographics must also be entered into the subform. (i.e. an employee's birthdate, name, etc must appear in both the form and the subform). I am looking for a way to auto populate the first row of the subform with the employee's demographics that the user inputs at the top of the main form.
Any ideas? I have tried linking an Append Query to a command button, but I am a little nervous about using that and don't want the user to have to click a button to populate the subform. I have also looked into the AutoLookup Query, but since only the employee's data is in the main form, I'm guessing I would get some type of error message for the dependents.
In an idea situation, I would like the subform to automatically populate each field as I'm typing the employee demographics into the main form. Then, when I get to the bottom of the form, the subform would already include all employee demographics, and I would click on the next row to input the dependent demographics. Not sure if this is possible?
Thanks for your help!
frosty2000
I am new to Access and have little programming knowledge, so any help you can provide would be much appreciated!
I am creating an employee database to track employee demographics and their dependents' demographics (i.e. name, Soc Sec #, birthdate, etc). I have a main form ("Employee Demographics") to input all of the employee data, and I have a subform in datasheet view("Dependent Demographics") to input all of the dependent data. The two are linked by the Employee Soc Sec #.
However, because of the way I need to set up the queries to provide data to our outside vendors, the employee demographics must also be entered into the subform. (i.e. an employee's birthdate, name, etc must appear in both the form and the subform). I am looking for a way to auto populate the first row of the subform with the employee's demographics that the user inputs at the top of the main form.
Any ideas? I have tried linking an Append Query to a command button, but I am a little nervous about using that and don't want the user to have to click a button to populate the subform. I have also looked into the AutoLookup Query, but since only the employee's data is in the main form, I'm guessing I would get some type of error message for the dependents.
In an idea situation, I would like the subform to automatically populate each field as I'm typing the employee demographics into the main form. Then, when I get to the bottom of the form, the subform would already include all employee demographics, and I would click on the next row to input the dependent demographics. Not sure if this is possible?
Thanks for your help!
frosty2000