Hi, im in the not-so-enviable task of having just slightly more knowledge of access than my co-workers and so being picked to create the companies training database.
I've set up all the tables and a few of the forms but my problem is this:
I have a main form from which the user inputs the details of any particular training course, and then a subform which is used to enter the names and details of the employees who went on that course. (the actual employee details are already in a table but I need this set up to link which people went on which course.)
So far so good, as long as ALL the information in the subform is put in by hand. The problem is that I want to simply type in the name of the employee on the subform and the rest of his details to be automatically filled in.
I've achieved this in a standalone form by using querys that relate to the 'txtname' box as the input. They then find the relevant employees details from the employee table and voila.
However, when using this form as the subform, the querys don’t wait for me to get to the txtname box! As soon as I open the form a message pops up asking for the name of employee (which should be taken from the value of txtname when I get there)
Sorry if the above is a little muddled, im really not that good with all of this. Basically I’d like to know why my querys aren't waiting for me to get to the relevant box in the subform.
Any help would be much appreciated, thanks.
I've set up all the tables and a few of the forms but my problem is this:
I have a main form from which the user inputs the details of any particular training course, and then a subform which is used to enter the names and details of the employees who went on that course. (the actual employee details are already in a table but I need this set up to link which people went on which course.)
So far so good, as long as ALL the information in the subform is put in by hand. The problem is that I want to simply type in the name of the employee on the subform and the rest of his details to be automatically filled in.
I've achieved this in a standalone form by using querys that relate to the 'txtname' box as the input. They then find the relevant employees details from the employee table and voila.
However, when using this form as the subform, the querys don’t wait for me to get to the txtname box! As soon as I open the form a message pops up asking for the name of employee (which should be taken from the value of txtname when I get there)
Sorry if the above is a little muddled, im really not that good with all of this. Basically I’d like to know why my querys aren't waiting for me to get to the relevant box in the subform.
Any help would be much appreciated, thanks.