Re: Help with VB statement
From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 12/15/04
- Next message: pokdbz: "Re: Code help (ADDITIONAL)"
- Previous message: Jim Rendant: "Subform data refreshing"
- In reply to: David: "Help with VB statement"
- Next in thread: David: "Re: Help with VB statement"
- Reply: David: "Re: Help with VB statement"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 14:56:41 -0500
Assuming that you're wanting to use the controls on the form:
LookedUpValue = DLookup("FieldName", "TableName", "[Field1]=" &
Me.Control1.Value & " And [Field2]=" & Me.Control2.Value)
--
Ken Snell
<MS ACCESS MVP>
"David" <David@discussions.microsoft.com> wrote in message
news:5F316C53-7137-4074-B058-20A1CDDA4255@microsoft.com...
> Hello,
>
> I have one form with a total of three fields. This form is based of lets
> say Table1. I would like to use the data in field 1 and 2 together to
lookup
> in table2 for the data for field 3. I cant figure out how to use Dlookup
for
> this.
>
> Any help would be great thank you
>
> David
- Next message: pokdbz: "Re: Code help (ADDITIONAL)"
- Previous message: Jim Rendant: "Subform data refreshing"
- In reply to: David: "Help with VB statement"
- Next in thread: David: "Re: Help with VB statement"
- Reply: David: "Re: Help with VB statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|