O
oldblindpew
Okay, I've been working at this for several days. I just want to find a
record and display it on a form for editing.
I was using a list box on a dialog form to allow the user to pick the
appropriate record by FirmName. The critical command is DoCmd.FindRecord. I
think this command works by finding a record in which the FirmName value
matches the value supplied via the ListBox. And I think that the form being
bound to the Firms table enables all the fields to be displayed. It works
just fine until you get duplicate firm names, then, no matter which one the
user picks via the dialog box, Access finds only the first instance in the
table.
How do I tell DoCmd.FindRecord to search on the FirmID rather than the
FirmName?
Thanks
record and display it on a form for editing.
I was using a list box on a dialog form to allow the user to pick the
appropriate record by FirmName. The critical command is DoCmd.FindRecord. I
think this command works by finding a record in which the FirmName value
matches the value supplied via the ListBox. And I think that the form being
bound to the Firms table enables all the fields to be displayed. It works
just fine until you get duplicate firm names, then, no matter which one the
user picks via the dialog box, Access finds only the first instance in the
table.
How do I tell DoCmd.FindRecord to search on the FirmID rather than the
FirmName?
Thanks