A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

FIND CORRECT TABLE & ADD ENTRY



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2007, 11:32 PM posted to microsoft.public.access.forms
ZigZagZak
external usenet poster
 
Posts: 46
Default FIND CORRECT TABLE & ADD ENTRY

Hello-
I am creating a database to keep track of some of our raw materials. I
created a table for each bar size and type. I made a form that I want to
enter the records. I have a text box on the form that that will be equal to
the name of the correct table. I want record source to change depending on
that text box. That way it will add the record to the correct table.
Hopefully that makes sense...its late in the day for me. (and very
frustrated) Any help would be great, thanks.


  #2  
Old February 23rd, 2007, 11:49 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default FIND CORRECT TABLE & ADD ENTRY

Creating "... a table for each bar size and type..." is what you'd have to
do if you were using a spreadsheet. Setting up your Access relational
database this way will only cause both you and Access headaches.

Instead of having to figure out which table needs to be added to,
considering using ONE table, with fields needed to identify "bar size" and
"type".

Your design will require new tables every time there's a new bar size and/or
type. And new forms and new queries and new reports and ... - a maintenance
nightmare!

The well-normalized table approach will require ... a new row!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"ZigZagZak" wrote in message
...
Hello-
I am creating a database to keep track of some of our raw materials. I
created a table for each bar size and type. I made a form that I want to
enter the records. I have a text box on the form that that will be equal
to
the name of the correct table. I want record source to change depending
on
that text box. That way it will add the record to the correct table.
Hopefully that makes sense...its late in the day for me. (and very
frustrated) Any help would be great, thanks.




  #3  
Old February 23rd, 2007, 11:52 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default FIND CORRECT TABLE & ADD ENTRY

I created a table for each bar size and type.
That is a mistake. Use only one table and fields to store bar size and type.

Then your selection on the form can populate the field with the information.
--
KARL DEWEY
Build a little - Test a little


"ZigZagZak" wrote:

Hello-
I am creating a database to keep track of some of our raw materials. I
created a table for each bar size and type. I made a form that I want to
enter the records. I have a text box on the form that that will be equal to
the name of the correct table. I want record source to change depending on
that text box. That way it will add the record to the correct table.
Hopefully that makes sense...its late in the day for me. (and very
frustrated) Any help would be great, thanks.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.