form to create new record or append existing

R

Rookie

I have a contacts table with firstname and lastname fields along with address
phone etc.
I have a form to enter contacts information. Can the form open matching
record as I type in the first and last name rather than creating a new record
and than just update the existing one?
 
J

John W. Vinson

I have a contacts table with firstname and lastname fields along with address
phone etc.
I have a form to enter contacts information. Can the form open matching
record as I type in the first and last name rather than creating a new record
and than just update the existing one?

This needs some care: I know Fred Brown, and his son Fred Brown, and an
unrelated Fred Brown here in little Parma. Your contacts table should - MUST!
- have a unique Primary Key personID field.

For data entry you may want to consider having a combo box (based on a query
bound to the PersonID but displaying LastName, Firstname) to *select* the
name; you could use this combo's not in list event to jump to the New Record
if it's not found.
 

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