Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-10-2006, 02:38 AM
northernbreaks northernbreaks is offline
Registered User
 
Join Date: Sep 2005
Posts: 19
northernbreaks is on a distinguished road
Textbox data to several tables

I am trying to link the textboxes on a form so that their values are stored in 2 seperate tables.
Setting the Record Source of the Form to TableA and the various Text boxes etc are set to the Fields in that table works fine, however I want some other text boxes to be linked to another set of table fields, so that when I enter values into those text boxes the data ends up in a different table.

Has anyone any ideas on how text boxes on one form can be linked to different tables.


dave
Reply With Quote
Sponsored Links
  #2  
Old 01-10-2006, 02:41 AM
Mile-O's Avatar
Mile-O Mile-O is offline
Administrator
 
Join Date: Dec 2002
Location: Glasgow, UK
Posts: 10,899
Mile-O is on a distinguished road
Why would you want to do this?

The fact that you are having such a problem hints that your table design is not good. Can you give more detail on your table structure, what data is on the form, and how the data on the form relates to the table?
Reply With Quote
  #3  
Old 01-10-2006, 05:02 AM
northernbreaks northernbreaks is offline
Registered User
 
Join Date: Sep 2005
Posts: 19
northernbreaks is on a distinguished road
textbox

Hi
Thanks for replying.

Its ok I have sorted the problem, most of the form fields belong to one table so adding and modifying data was not a problem, however there is another table of data that the user wanted to see a couple of fields displayed on the same form, displaying these data fields was not a problem, but the user wanted to access and modify this additional data from the same form, I have decided to provide a popup form linked to the other table and its data so the user can add/modify via the popup.

Thanks anyway - sorry to bother you. It sometimes helps to stand back from the problem and look from a different angle and Take a Break.

dave
Reply With Quote
  #4  
Old 01-10-2006, 05:14 AM
Mile-O's Avatar
Mile-O Mile-O is offline
Administrator
 
Join Date: Dec 2002
Location: Glasgow, UK
Posts: 10,899
Mile-O is on a distinguished road
You shouldn't be binding tables to your forms as that will bring in every record in the table and in an unordered state. The larger your tables then the slower your database will begin to run.

The recordset you should bind to the form is a query based upon the two tables (they should have some realtionship linking them) which can be updated on the form with the relevant details being allocated to the correct tables. Using a query as a form's recordsource allows you to choose specific fields, perform calculations, order your records, etc. which is best practice.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Split Db: Data being stored in FE tables, not BE tables DruTheFu General 3 10-13-2005 02:50 PM
error: couldn't use; file already in use DataMiner Queries 2 07-14-2005 01:10 PM
Merge 2 Tables Rundog Tables 8 09-24-2004 03:50 PM
Update query using different tables with same data item Alexandria Queries 3 09-15-2004 06:56 AM
Tables that don't record data Pete456 Forms 5 02-08-2002 06:59 PM


All times are GMT -8. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World