15706 Update/lookup value of one field based upon entry in previous field
Sign Up |  Live StatsLive Stats    Articles 37,350| Comments 177,415| Members 19,424, Newest yashpal singh| Online 387
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Update/lookup value of one field based upon entry in previous field

Update/lookup value of one field based upon entry in previous field

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Auto fill in field 2 based on field 1 panjo Information Technology 1 28-Jul-2006 08:16 AM
Requiring data entry in a lookup field ChristaJ Information Technology 3 14-Nov-2005 15:28 PM
Update Form after Field entry Question xsmileyx Information Technology 1 10-Nov-2005 21:09 PM
Selecting from list based on previous entry LDCorey Information Technology 1 02-Nov-2005 11:47 AM
Limiting data in drop down based on previous field entry dericksonfl Information Technology 1 29-Oct-2005 12:35 PM


Tags
based, entry, field, previous, update or lookup, updatelookup, upon, value
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:18 AM
stevewrite@gmail.com's Avatar stevewrite@gmail.com
Guest
 
Posts: n/a
   
   
Update/lookup value of one field based upon entry in previous 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
This UPDATE query works fine, after the fact:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11165-update-lookup-value-one-field-based.html

UPDATE authorizations, consumers SET authorizations.fname =
consumers.fname
WHERE authorizations.bsu_no=consumers.bsu_no;

When I enter bsu_no in rows and then close the table and run the UPDATE
query, it's perfect.

What I want is for the update to occur after entering the bsu_no in the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11165
table and dropping focus on the field.

I know the answer's simple, but it's Friday afternoon and my brain is
fried, so any help is greatly appreciated.

Thanks,

Steve



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:18 AM
Pat Hartman\(MVP\)'s Avatar Pat Hartman\(MVP\)
Guest
 
Posts: n/a
   
   
Re: Update/lookup value of one field based upon entry in previous field

1. Your query syntax is incorrect because the join type is not specified.
Open the QBE and draw the appropriate join line between the two tables.
2. Tables do not expose events so there is no place to put the code to run
the update query.
3. And last but not least, you shouldn't be doing this in the first place.
It is not necessary to duplicate data. Data should be stored in one and
only one place. When you need data from a related table, create a query
that joins the necessary tables.

wrote in message
news:1149880693.297062.64330@h76g2000cwa.googlegro ups.com...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11165
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11165
> This UPDATE query works fine, after the fact:
>
> UPDATE authorizations, consumers SET authorizations.fname =
> consumers.fname
> WHERE authorizations.bsu_no=consumers.bsu_no;
>
> When I enter bsu_no in rows and then close the table and run the UPDATE
> query, it's perfect.
>
> What I want is for the update to occur after entering the bsu_no in the
> table and dropping focus on the field.
>
> I know the answer's simple, but it's Friday afternoon and my brain is
> fried, so any help is greatly appreciated.
>
> Thanks,
>
> Steve
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:18 AM
stevewrite@gmail.com's Avatar stevewrite@gmail.com
Guest
 
Posts: n/a
   
   
Re: Update/lookup value of one field based upon entry in previous field

  Donate Today!  
1. OK, I did that in the QBE (I wish I could just do this in SQL and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11165
avoid Access altogether!). The tables were already joined in a
previously-defined relationship, so I didn't think it'd be necessary,
here.

2. O-kay......

3. "Now we see the corruption inherent in the system!" (points for
reference ) I blame Friday. I'm thinking I need to store the names
in the "authorizations" database so I can report on them later but, of
course, all I need is the bsu_no field stored in the main database and
my later reports can lookup and retrieve the names as needed.

So, I'll end up with a main database, a couple of reference databases,
a date-entry form that requires the bsu_no field but simply retrieves
and displays the names; and later reports that also key off the bsu_no
field and only retrieve the names!

Paradigm block removed, now I can enjoy the weekend, thanks Pat!
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11165


Pat Hartman(MVP) wrote:
> 1. Your query syntax is incorrect because the join type is not specified.
> Open the QBE and draw the appropriate join line between the two tables.
> 2. Tables do not expose events so there is no place to put the code to run
> the update query.
> 3. And last but not least, you shouldn't be doing this in the first place.
> It is not necessary to duplicate data. Data should be stored in one and
> only one place. When you need data from a related table, create a query
> that joins the necessary tables.
>
> wrote in message
> news:1149880693.297062.64330@h76g2000cwa.googlegro ups.com...
> > This UPDATE query works fine, after the fact:
> >
> > UPDATE authorizations, consumers SET authorizations.fname =
> > consumers.fname
> > WHERE authorizations.bsu_no=consumers.bsu_no;
> >
> > When I enter bsu_no in rows and then close the table and run the UPDATE
> > query, it's perfect.
> >
> > What I want is for the update to occur after entering the bsu_no in the
> > table and dropping focus on the field.
> >
> > I know the answer's simple, but it's Friday afternoon and my brain is
> > fried, so any help is greatly appreciated.
> >
> > Thanks,
> >
> > Steve
> >


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
Is Science a Religion?
Today 04:49 AM
17 Replies, 2,057 Views
UNITED SIKHS AID Team...
Today 03:19 AM
0 Replies, 21 Views
Woolwich Killing: The...
Today 03:05 AM
26 Replies, 281 Views
Abu Nusaybah, 'Friend'...
Today 02:33 AM
0 Replies, 35 Views
Stockholm riots throw...
Today 02:14 AM
10 Replies, 99 Views
How does Sikhi help you...
Today 02:04 AM
48 Replies, 1,222 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:52 AM
186 Replies, 4,653 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:41 AM
322 Replies, 7,726 Views
Paneer: what I have...
Yesterday 22:29 PM
8 Replies, 75 Views
How Many Sikhs Have...
Yesterday 21:55 PM
698 Replies, 51,739 Views
Transgenderism ... Right...
By Kaylee
Yesterday 17:55 PM
31 Replies, 1,382 Views
Rochester Gurdwara...
Yesterday 10:55 AM
2 Replies, 85 Views
US Congress panel passes...
Yesterday 04:22 AM
0 Replies, 46 Views
Harmeet Kaur Took the...
Yesterday 03:40 AM
0 Replies, 69 Views
Panjabi Alphabet Resource
24-May-2013 23:15 PM
12 Replies, 6,564 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 05:35 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.37365 seconds with 32 queries
0