As far as I know, it's not possbile to update several related tables by a single query in Access. As you know Access doesn't have trigger facility. At this position I can advice you to use Personal SQL server 2000(It's low according to price, though we have greater tendency to use pirate one). Now if you still like to use Access then I'd say you've to use multiple queries in a single VB procedure. You can make a function too and call it, but procedure is faster than function according to MS. e.g. Customer account.
Table1:Customer ID, Date, Type(Withdraw/deposite), Amount.
Table2:CustomerName, CustomerID, CurrentBalance.
Now If you use "insert query" in table 1 and create a trigger in your database(in this case you've to have RBMS), trigger will find the right customer in table2 and update current balance accroding to type(withdraw/deposite). In access you have to write 2 queries one insert query for Table1 and update query for table2. But you've to store the value of customerID and Type in two variables which will be needed in update query. There are lot of ways to do that. lolz. Welcome to the world of 32bit programming.
If you like to know how to write the code then you've to let us know the specific senario of your project. So, we can help.
| Quote: |
how can i take the benifit of this relational database system in updating related fields of a specific recod id?
|
It's not possible to do that with a single query in Access. You need multiple queries.
-DK.