Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2007, 11:11 AM
Authorized User
 
Join Date: Nov 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing values between two tables

I have two problems
1. I have two tables which are linked. now I want if I open the child table to also display the valus of a field in the master table automatically. e.g table A has field Unit number, Name(PrimaryKey Unit Number) table B has fields Unit Number, Result. the two tables are linked by Unit number. now when I want when I enter the Primary field values they are automatically populate Unit Number field in table B. I dont want to re-enter the PrimaryKey field value when I want to make entries in Table B

2. I have put VBA code in the form current to be executed when the form is started. Now, I have found that the code is executing correctly in some records but not in others. What is the problem. e.g as I navigate through the records by the forms. In some it calculates correctly but in others not
Help

Bmulenga
__________________
Bmulenga
 
Old January 24th, 2007, 11:27 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hiya,

   As to 1., you don't need to move the value to the other table. Just refer to the value when you need it in queries and reports by referring to the other table by the FK. This is a standard design technique.

   If you really need to capture the value, then you will need to code this on a data entry form.

   What is the code for 2.?





mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting values from other tables TheAndruu SQL Language 7 May 27th, 2007 10:47 AM
i don't get values from 4 tables in right order Haroldd SQL Language 3 September 19th, 2003 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.