PC Review


Reply
Thread Tools Rate Thread

Best way to setup a field if different info needed based on type

 
 
cynteeuh
Guest
Posts: n/a
 
      7th Dec 2009
Hello,

I'm stuck. I have a field that requires different info based on a type and
I'm not sure how to setup that up. Basically, if field1 is equal to x, then
enter this data (about 3 different fields) for field3. If field1=y, then
enter a different set of data (two fields) for field3. I'm not sure of the
best way to tackle this. Two different tables of the types (xtbl & ytbl
w/relevant fields) linked by 1->M relationship to field3?

Suggestions, please.

Humbly,
Cynteeuh
 
Reply With Quote
 
 
 
 
Lynn Trapp
Guest
Posts: n/a
 
      7th Dec 2009
You probably need some kind of cascading combo boxes. Could you describe your
date in more detail?

--
Lynn Trapp


"cynteeuh" wrote:

> Hello,
>
> I'm stuck. I have a field that requires different info based on a type and
> I'm not sure how to setup that up. Basically, if field1 is equal to x, then
> enter this data (about 3 different fields) for field3. If field1=y, then
> enter a different set of data (two fields) for field3. I'm not sure of the
> best way to tackle this. Two different tables of the types (xtbl & ytbl
> w/relevant fields) linked by 1->M relationship to field3?
>
> Suggestions, please.
>
> Humbly,
> Cynteeuh

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      7th Dec 2009
If you are saying that you want to copy data already in "3 different fields"
(or "two fields") into a new field, why? Why bother (redundantly) storing
the same data?

If you want to SEE the concatenation of "3 different fields" or "two
fields", use a query instead of storing the calculated value (redundantly).

(NOTE: this is not an absolute, but it is rare to actually need to store
duplicate data like this ... as Lynn says, "more info, please!")

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"cynteeuh" <(E-Mail Removed)> wrote in message
news:788A2B4A-3F6F-4A2B-8B58-(E-Mail Removed)...
> Hello,
>
> I'm stuck. I have a field that requires different info based on a type and
> I'm not sure how to setup that up. Basically, if field1 is equal to x,
> then
> enter this data (about 3 different fields) for field3. If field1=y, then
> enter a different set of data (two fields) for field3. I'm not sure of the
> best way to tackle this. Two different tables of the types (xtbl & ytbl
> w/relevant fields) linked by 1->M relationship to field3?
>
> Suggestions, please.
>
> Humbly,
> Cynteeuh



 
Reply With Quote
 
Fred
Guest
Posts: n/a
 
      7th Dec 2009
Could you also clarify what you mean by a field being loaded with a "set of
data" and the particulars of what would go into it (e.g. some other fields?)
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto-populate field based on info entered into other field reesa Microsoft Access Forms 0 22nd Feb 2011 06:56 PM
TYPE IN ONE FIELD, INFO TYPED SHOWS UP IN ANOTHER FIELD PepsiHog Microsoft Word Document Management 1 4th Nov 2008 12:33 AM
How do I auto fill a field based on info input into another field. =?Utf-8?B?QnJlbmRhIEY=?= Microsoft Access Forms 1 20th Apr 2005 03:29 AM
Form field not returning same info as query info it's based on denilynn Microsoft Access Forms 3 24th Mar 2004 11:46 PM
Text box in field doesn't return same info as in query field it's based on denilynn Microsoft Access Forms 9 3rd Mar 2004 06:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:59 AM.