UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> I want a field to update Aumatically after I enter data in anoth    
 
   
jrnisaac
post Feb 23 2006, 07:10 PM
Post #1

UtterAccess Member
Posts: 20
From: Cali



I am dealing with part numbers and product classes. On the form, I would like to enter the part number in one field, and I want another field to automatically enter the Product Class for that particluar part...

I have two tables, one with empty fields for customer info and a part number field, and the other table has all of our part numbers and related product classes.
Go to the top of the page
 
+
Raphmonya
post Feb 23 2006, 08:12 PM
Post #2

UtterAccess Addict
Posts: 112



My suggestion:
Make the part primary key a foreign key in your customer table
Then in your forms record source add the customer and parts table
For the query add the parts foreign key (from the customer table) and the product class field from the parts table
On the form add the parts field (foreign key) as a combo-box then add the product class as a text box.
Now when you select the parts field (foreign key) combo-box the associated product class will display in the text box.
Go to the top of the page
 
+
sleepy_chicken
post Feb 24 2006, 04:43 AM
Post #3

UtterAccess VIP
Posts: 1,405
From: Heart of England



Hi,

Have a look at the attached sample which demonstrates one method of "Autofill", which I think is what you're looking for.

Check out the form in design view

HTH
Attached File(s)
Attached File  AutoFill.zip ( 11.44K ) Number of downloads: 20
 
Go to the top of the page
 
+
jrnisaac
post Mar 1 2006, 01:44 PM
Post #4

UtterAccess Member
Posts: 20
From: Cali



Thanks to the both of you. I got it to work suing the autofill method. I almost got everything done in this DB, but i am stuck in doing one thing. I got the combo box to show both collums in one, and the text box is updated as it should. THe question is that i would like to run a query using the column 1 (or the second column in the combo box. Would I set the value of the Text box to be saved separately in the bale so i can use it to run a query, or is there a way i can run a query by just leaving it this way? Main thing I would like to do is run a query using the Product Class.


Also, I have two sets of radio buttons, which i can pick from. i noticed that in the tables, these get stored in numerical values. I have tried everything to show these as actual words. How do i do this? For instance, if i click on the radio button that shows contractor, I'd like the word "contractor" show in the table, not a value of 1.


Your help is appreciated.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th May 2013 - 10:00 PM