Using Subforms

J

Josef

I have an Employee database. Once i select an employee, i click a button
to display the employee sick days, hosted on a different table.

my problem is that when i open a new form/subform for an employee that
does not have any outstanding sick days, it causes errors. somehow the
form/subforms are not linking up for me. any suggestions??
 
J

John Vinson

I have an Employee database. Once i select an employee, i click a button
to display the employee sick days, hosted on a different table.

my problem is that when i open a new form/subform for an employee that
does not have any outstanding sick days, it causes errors. somehow the
form/subforms are not linking up for me. any suggestions??

Well, this isn't really a Subform. Would it be possible to have the
second form actually in a Subform control, on the employee form, using
the EmployeeID as the master/child link field? This would save some
code (you would not need the button at all), avoid the no-records
problem (the subform would simply be blank, ready to accept a new
record), and probably be simpler for the user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top