169d3 Createing look up field
Sign Up |  Live StatsLive Stats    Articles 37,312| Comments 177,037| Members 19,397, Newest birinder| Online 416
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Createing look up field

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 100 USD (20%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Update/lookup value of one field based upon entry in previous field stevewrite@gmail.com Information Technology 2 28-Jul-2006 08:18 AM
Auto fill in field 2 based on field 1 panjo Information Technology 1 28-Jul-2006 08:16 AM
Making a field required based on a different field dmv1947 Information Technology 1 28-Jul-2006 08:14 AM
Convert Output of Query result field to a single field Ruth Information Technology 1 18-Nov-2005 14:00 PM
Re: Copy results in query field to another field Joseph Meehan Information Technology 0 29-Oct-2005 12:35 PM


Tags
createing, look, field
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:24 AM
Joker's Avatar Joker
Guest
 
Posts: n/a
   
   
Createing look up field

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I am converting an Excel workbook into an Access database. This first table
I created was an import of all the original data call it Sales Table. I
want a few of the columns to have a limited set of choices, so I created a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11862-createing-look-up-field.html
table called Region Table. I created a relationship from the Region Table
to the Region Field in the Sales table. However, when I try and create a
lookup table, it deletes the records of gives me an error indicating I am
putting in an unexpected value. If I go to the Sales Table and select from
the pull down menu, then it accepts the value. Since I have thousands of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
lines of data, I don't want to go through each record and re-select the
correct region. Is there a faster or easier way to make this work? Did I
do something wrong on the import or creating the relationship?
--
Joker
"...God hath made me to laugh, so that all that hear will laugh with me."
Gen. 21:6




Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:24 AM
Jerry Porter's Avatar Jerry Porter
Guest
 
Posts: n/a
   
   
Re: Createing look up field

I don't understand what you mean by "when I try and create a lookup
table...".
Your Region Table is the lookup table.

If you have created a key field in Regions that you want to use in
Sales instead of the text value of the region, then you can do this
with an update query as follows:

1. Create a RegionID field in sales that is the same data type as the
key field in Regions. I think you've already done this.

2. Create an update query that links the two tables on the Region text
fields.

3. In the Update row, in the column for the Region ID in the Sales
table, enter Regions.RegionID (or whatever you have for the table name
and key field name.)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862

4. After running the query and verifying the region assignments, you
can delete the region text field from the Sales table.

Jerry



Joker nospam wrote:
> I am converting an Excel workbook into an Access database. This first table
> I created was an import of all the original data call it Sales Table. I
> want a few of the columns to have a limited set of choices, so I created a
> table called Region Table. I created a relationship from the Region Table
> to the Region Field in the Sales table. However, when I try and create a
> lookup table, it deletes the records of gives me an error indicating I am
> putting in an unexpected value. If I go to the Sales Table and select from
> the pull down menu, then it accepts the value. Since I have thousands of
> lines of data, I don't want to go through each record and re-select the
> correct region. Is there a faster or easier way to make this work? Did I
> do something wrong on the import or creating the relationship?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
> --
> Joker
> "...God hath made me to laugh, so that all that hear will laugh with me."
> Gen. 21:6


Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:24 AM
Larry Linson's Avatar Larry Linson
Guest
 
Posts: n/a
   
   
Re: Createing look up field

"Joker" wrote

> . . . However, when I try and create a
> lookup table, it deletes the records
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
> of gives me an error indicating I am
> putting in an unexpected value. . . .


If you mean "when I try and create a Lookup Field," just don't do that. You
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
already have your lookup Table, you can join the Tables in a Query and
display the text instead of the ID, it works nicely with the Combo Box, and
there's no question what data you have in which table.

Lookup Fields, on the other hand, are a violation of relational design
principles -- they obscure what is actually stored in the Table by
displaying something else in Table View, and they can be a real pain when
you do Queries.

Larry Linson
Microsoft Access MVP



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:24 AM
Jerry Porter's Avatar Jerry Porter
Guest
 
Posts: n/a
   
   
Re: Createing look up field

If you mean that your creating an autolookup query, then make sure that
the region id field is coming from the Sales table, not the Regions
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
table. It should select from the codes in the Regions table, and assign
that select to the record in the Sales table.

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:24 AM
Joker's Avatar Joker
Guest
 
Posts: n/a
   
   
Re: Createing look up field

  Donate Today!  
>I am converting an Excel workbook into an Access database. This first
table
>I created was an import of all the original data call it Sales Table. I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
>want a few of the columns to have a limited set of choices, so I created a
>table called Region Table. I created a relationship from the Region Table
>to the Region Field in the Sales table. However, when I try and create a
>lookup table, it deletes the records of gives me an error indicating I am
>putting in an unexpected value. If I go to the Sales Table and select from
>the pull down menu, then it accepts the value. Since I have thousands of
>lines of data, I don't want to go through each record and re-select the
>correct region. Is there a faster or easier way to make this work? Did I
>do something wrong on the import or creating the relationship?


I had imported the data and let Access assign the ID, which was unnecessary.
I have corrected the primary key to be the actual data in the file. I had a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11862
copy of the raw data and just copy/pasted the information back in once I had
the relationships established. If you could not tell, I am rather new to
this.

--
Joker
"...God hath made me to laugh, so that all that hear will laugh with me."
Gen. 21:6


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Of Serpents, Pigs,...
Today 05:21 AM
37 Replies, 971 Views
Why are There so Many...
Today 04:43 AM
68 Replies, 4,970 Views
Biography of a Scholar:...
Today 04:40 AM
0 Replies, 7 Views
How does Sikhi help you...
Today 04:01 AM
16 Replies, 487 Views
Do you believe in...
Today 03:40 AM
177 Replies, 3,669 Views
Should SPN Keep the...
Today 03:27 AM
16 Replies, 343 Views
Map shows world's 'most...
Today 03:02 AM
15 Replies, 222 Views
Friends. A Testimony to...
Today 02:40 AM
4 Replies, 99 Views
BHOOTS (Ghosts) and...
Today 02:32 AM
97 Replies, 13,799 Views
Panjabi
Today 02:27 AM
11 Replies, 225 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 02:13 AM
301 Replies, 7,435 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:54 AM
169 Replies, 4,320 Views
Oz magazine apologizes...
Today 01:40 AM
1 Replies, 33 Views
Iman: Sack Liberal...
Today 01:34 AM
0 Replies, 26 Views
Thought of the Moment!
Yesterday 19:38 PM
106 Replies, 5,019 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 05:56 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.56192 seconds with 32 queries
0