OK. But please tell us how you're running the application. It's not possible
to give a good suggestion on how to do what you seek to accomplish without
knowing the circumstances and process that you use to generate the serial
number, etc. In other words, what is the application doing when you need it
to write a record to TableB?
Generically, using an append query probably is the best way to accomplish
your needs.

Signature
Ken Snell
<MS ACCESS MVP>
> TableA does not have Serial Numbers information in it, it is in TableB for
> each product. The VB.net application uses TableA for data management and
[quoted text clipped - 44 lines]
>> >> > When I add a record in TableA, I would like it to add to TableB
>> >> > automatically. How do I do it?
Shariq - 27 May 2005 17:05 GMT
Ken, I should have mentioned this earlier; I am adding new records in TableA
using Access database directly into the table. My question has nothing to do
how the application is run or processes the Serial Numbers or reads/writes
the Serial Numbers. All I need is to setup relationship in Access database
for two table in a way that when I add a new product in TableA, TableB woud
be updated to add the product number in it. Currently, if I delete a product
from TableA, that product number (Item) would automatically be deleted from
TableB (uses MS Access Table Relationship option).
> OK. But please tell us how you're running the application. It's not possible
> to give a good suggestion on how to do what you seek to accomplish without
[quoted text clipped - 53 lines]
> >> >> > When I add a record in TableA, I would like it to add to TableB
> >> >> > automatically. How do I do it?
Ken Snell [MVP] - 27 May 2005 18:51 GMT
A relationship by itself will not put "empty" records into a related table.
You will have to add a record to that TableB via an append query that is run
when you finish entering data into TableA.
That is why I asked about how you're entering data.

Signature
Ken Snell
<MS ACCESS MVP>
> Ken, I should have mentioned this earlier; I am adding new records in
> TableA
[quoted text clipped - 83 lines]
>> >> >> > When I add a record in TableA, I would like it to add to TableB
>> >> >> > automatically. How do I do it?
Shariq - 27 May 2005 22:00 GMT
How do I create the append query?
> A relationship by itself will not put "empty" records into a related table.
> You will have to add a record to that TableB via an append query that is run
[quoted text clipped - 88 lines]
> >> >> >> > When I add a record in TableA, I would like it to add to TableB
> >> >> >> > automatically. How do I do it?
Ken Snell [MVP] - 27 May 2005 22:13 GMT
It completely depends upon what you're doing in ACCESS at the time that you
need it. If you're working in a form when you want to run the append query,
you can have the form's programming create an SQL string and then execute
it. Or you can run a stored query.
Forgive me, but as I've said a few times already, if you don't tell us what
is happening at the time that you need this to run, we cannot provide
specific suggestions.

Signature
Ken Snell
<MS ACCESS MVP>
> How do I create the append query?
>
[quoted text clipped - 109 lines]
>> >> >> >> > TableB
>> >> >> >> > automatically. How do I do it?