|
|
dlookup on forms
Hi...
I'm hoping someone can help me.
I'm working with a form in access. (form name is frmvcletter)
I have a bound text box on the form called txtPlan_1.
I have a bound text box on the form called txtPlan_2
Table 1 has: Basis 1 Code, Basis 2 code
Table 2 has: Code, Description
Instead of putting the basis 1 code information in the text box (txtPlan_1),
I want to retrieve Description from Table 2 when Basis 1 code match Code.
Apply the results to txtPlan_1
I want to use dlookup.
Please help!!!!
thanks
|
|
0
|
|
|
|
Reply
|
Utf
|
2/26/2008 2:38:01 AM |
|
Umpire,
What you are asking is not possible.
You could do this with *unbound* textboxes on the form, which referenced
the value of the bound txtPlan_1 and txtPlan_2 controls. The Control
Source of one of these unbound textboxes would be something like this:
=DLookup("[Description]","Table 2","[Code]='" & [txtPlan1] & "'")
You may find this article relevant:
http://accesstips.datamanagementsolutions.biz/lookup.htm
--
Steve Schapel, Microsoft Access MVP
umpire_43 wrote:
> Hi...
>
> I'm hoping someone can help me.
>
> I'm working with a form in access. (form name is frmvcletter)
>
> I have a bound text box on the form called txtPlan_1.
> I have a bound text box on the form called txtPlan_2
>
> Table 1 has: Basis 1 Code, Basis 2 code
> Table 2 has: Code, Description
>
> Instead of putting the basis 1 code information in the text box (txtPlan_1),
> I want to retrieve Description from Table 2 when Basis 1 code match Code.
> Apply the results to txtPlan_1
>
> I want to use dlookup.
>
> Please help!!!!
>
> thanks
>
|
|
0
|
|
|
|
Reply
|
Steve
|
2/26/2008 7:05:05 AM
|
|
|
1 Replies
209 Views
(page loaded in 0.037 seconds)
Similiar Articles: DLookup on Text Box - microsoft.public.access.formsI am trying to use DLookup to populate a text box on my form. I am failing at all levels to get this to work. Could someone please help me? The fo... DLookup in Conditional Formatting? - microsoft.public.access.forms ...Will conditional formatting (Access 2002) allow the use of DLookup? I've been hammering on such a thing all morning, and can't seem to find the right... DLookup (populating text based on other selections on form ...Hi All, I have searched a few posts and still having trouble with this easy (hopefully) fix. I have a form called "Form_Update_Individual_Goal". DLookup in subform - microsoft.public.access.formsUsing Access 2007: Form - frmNewQuote Continuous (Tabular) Subform - subfrmOptions with unitPrice textbox calculating price from value entered into m... Dlookup (two fields) - microsoft.public.access.formsThe usual way is to have two separate lookups. It is possible to have a single DLookup return more than one value, but if you do that, then you have the issue of ... Combobox control source - DLookup function - microsoft.public ...I have a form link to a table: tblEmployee Fields of tblEmployee: DepartmentNumber EmployeeName Address Phone Position I have another table tblDepar... DLookup fails in Form's Text Box Control Source when using ...DLookup works fine in Form's Text Box Control Source when using Windows Vista and earlier, but fails when using Windows 7. ... Sum value from Dlookup function - microsoft.public.access.forms ...Sum value from Dlookup function - microsoft.public.access.forms ... return the query result into field within same form - microsoft ... Sum value from Dlookup ... DLookup - why this syntax? - microsoft.public.access.forms ...After a couple frustrating weeks - typos and my own ignorance - I finally got a functioning control source for a textbox (and it works as desired LOL) : =DLookUp ... Refresh fields with dlookup - microsoft.public.access.forms ...I have a form that has two drop down fields. The user selects a pay group and a pay year. Based on those two fields there are two unbound fields tha... ACC2000: How to Use DLookup to Look Up Values in Forms or ReportsYou can display multiple fields in a combo box or a list box on a form or a report even when those fields come from a table that is not bound to the form ... MS Access: DLookup Function - TechOnTheNet.comFieldName is a field, calculation, control on a form, or function that you wish to return. TableName is the set of records. This can be a table or a query name. Description of DLookup() usage, examples, and troubleshootingThis example demonstrates how to use the DLookup() function in its simplest form, without specifying any criteria. This example returns the value contained in the ... DLookup Function - Access - Office.com - Microsoft Corporation ...You could use the DLookup function in a calculated control to display the ProductName on the same form. Syntax. DLookup(expr, domain [, criteria] ) The DLookup function syntax ... DLookup Function [Access 2003 VBA Language Reference]You could use the DLookup function in a calculated control to display the ProductName on the same form. DLookup(expr, domain, [criteria]) The DLookup function has the ... 7/25/2012 9:15:58 PM
|
|
|
|
|
|
|
|
|