S
saraqpost
I am adding a new table to an old database. The new table will store
name and address info for each of our stores. The existing table
stores (no pun intended) the name, ID, name on the sign and the like.
I want to have a user enter and maintain the address information. I
have a combo box whose source is the "old" table - show me the Store ID
and Name, so the user can choose one and enter (or update) the address
information.
It works fine for update. My problem is that if there is NO address
record Yet for the store, I get the address of the first record on the
table.
What is the "trick" here? I am still new, but now capable of writing
some code, but I can't figure out what to write. If "not found" (how
would I know that?), do something (like open the form in Add mode).
But if I open the form in Add mode, I need to make sure I "carry over"
the store the user selected.
This can't possibly be that hard - I'm caught up in my own personal
loop, I guess.
Thanks
Sara
name and address info for each of our stores. The existing table
stores (no pun intended) the name, ID, name on the sign and the like.
I want to have a user enter and maintain the address information. I
have a combo box whose source is the "old" table - show me the Store ID
and Name, so the user can choose one and enter (or update) the address
information.
It works fine for update. My problem is that if there is NO address
record Yet for the store, I get the address of the first record on the
table.
What is the "trick" here? I am still new, but now capable of writing
some code, but I can't figure out what to write. If "not found" (how
would I know that?), do something (like open the form in Add mode).
But if I open the form in Add mode, I need to make sure I "carry over"
the store the user selected.
This can't possibly be that hard - I'm caught up in my own personal
loop, I guess.
Thanks
Sara