dbTalk Databases Forums  

Lookups in Access 2007 table

comp.databases.ms-access comp.databases.ms-access


Discuss Lookups in Access 2007 table in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JkingSJR
 
Posts: n/a

Default Lookups in Access 2007 table - 11-10-2010 , 11:27 AM






I used the wizard to create a lookup and all is fine. I want to go a
step further. I want to lookup a field from a foreign table which in
turn places a corresponding value in a 2nd field in the table. Can
this be done?

John King
208-424-8370
Boise, Idaho

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Lookups in Access 2007 table - 11-10-2010 , 12:15 PM






JkingSJR wrote:

Quote:
I used the wizard to create a lookup and all is fine. I want to go a
step further. I want to lookup a field from a foreign table which in
turn places a corresponding value in a 2nd field in the table. Can
this be done?

John King
208-424-8370
Boise, Idaho
Something like this. You can out use Dlookup() perhaps in the
AfterUpdate event of a field when you want to update the value. Ex:
Me.YourFieldName = Dlookup("TableFieldName","TableName","CustID = 1")

In the above example, CustID = 1 is the where clause without the word
"Where". Check out online help.

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.