Dlookup help

GI_Mike25

New member
Local time
Today, 00:40
Joined
Jun 15, 2006
Messages
5
I've been reading and reading all previous posts and have yet to find anything related to what I need help with.

I've done this before through help from my dad, so I know it's possible. What I basically would like to do is show a list all records that start with a letter picked from a combo box. I.e. combo box letter selected is g, a list box on the form will show all records on my 1 table that start with the letter g.

there's a way to use dlookup (i believe), to show this by taking the first letter from all the fields and comparing them to the letter listed in the combo box. but I'm completely lost in how to do it.
 
Mike,

The form's RecordSource is a query.

The query has a column for the field: [YourField].

Underneath it, in the Criteria section, put

Like Mid(Forms![YourForm]![YourCombo], 1, 1) & "*"

hth,
Wayne
 

Users who are viewing this thread

Back
Top Bottom