Terry, your code looks fine. I'd have to see your database to tell you for sure why it's not working. You might want to try putting the full name of the EmployeeID in the code to...
...WHERE EmployeeID=" & Forms!MyForm!EmployeeID
If that doesn't work, let me know.
Or... is your listbox lstEmployees the field that contains your EmployeeID? If so, you need to say:
...WHERE EmployeeID=" & Forms!MyForm!lstEmployees
I'll bet that's it... unless EmployeeID is a separate field on that form.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft Access 313.