Re: Lookup in a table
From: Wayne Morgan (comprev_gothroughthenewsgroup_at_hotmail.com)
Date: 06/10/04
- Next message: Pat Whitted: "MultiSelect Misbehavin'"
- Previous message: Funaki: "Deleting Duplicate Records in a Form"
- In reply to: Howard: "Re: Lookup in a table"
- Next in thread: Howard: "Re: Lookup in a table"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 18:26:42 -0500
Howard,
To do the same thing as the code you have but without the combobox, use the
DLookup function. This will allow you to specify a field in a table or
stored query and add criteria to make sure that you get the value from the
correct record.
-- Wayne Morgan MS Access MVP "Howard" <anonymous@discussions.microsoft.com> wrote in message news:1acc401c44f05$957637c0$a401280a@phx.gbl... > Hi Wayne, > > I apologise, as I wasn't clear. The select statement I > gave you was from a form with a combo box lookup which, > yes, does work. I now need to do the same thing elsewhere > in my code that does not have the luxury of using a combo > box to do a lookup. It's a routine that is adding a many > many records to a table at the click of a button. While > adding these records, I need to obtain some of the > information to stuff in the fields from other lookup > tables. Using the example I gave, how do I do the lookup > (select statement) from inside my routine? Thanks! > -Howard
- Next message: Pat Whitted: "MultiSelect Misbehavin'"
- Previous message: Funaki: "Deleting Duplicate Records in a Form"
- In reply to: Howard: "Re: Lookup in a table"
- Next in thread: Howard: "Re: Lookup in a table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|