Dlookup for 2 fields

T

Tom

Hi all,

This post is related to my previous post from 5\22\06 "A Challenge".

If I will create a table with all the combinations, how can I create a
Dlookup function that will find the right one and will populate the grade
field.

Is Dlookup is the right function?

I will be grateful for any input about this.

Thanks,
Tom
 
D

Douglas J Steele

Don't expect people to go searching for previous posts. Give sufficient
information so that the post stands alone, or else put this question in the
original thread.
 
D

Douglas J Steele

Don't expect people to go searching for previous posts. Give sufficient
information so that the post stands alone, or else put this question in the
original thread.
 
T

Tom

Sorry about that
Douglas J Steele said:
Don't expect people to go searching for previous posts. Give sufficient
information so that the post stands alone, or else put this question in
the
original thread.
 
T

Tom

Sorry about that
Douglas J Steele said:
Don't expect people to go searching for previous posts. Give sufficient
information so that the post stands alone, or else put this question in
the
original thread.
 
R

Ron2006

Since the grade is already associated with the two items you mentioned,
it could simply be a part of that second query that you are doing for
the second combo box.

Then all you have to do is add code to the afterupdate event of the
combobox to do the following

me.gradefieldnameonform = me.combobox2.column(2)

The columns are numbered relative to 0 so the third field in the query
is referenced as column(2).
 
R

Ron2006

Since the grade is already associated with the two items you mentioned,
it could simply be a part of that second query that you are doing for
the second combo box.

Then all you have to do is add code to the afterupdate event of the
combobox to do the following

me.gradefieldnameonform = me.combobox2.column(2)

The columns are numbered relative to 0 so the third field in the query
is referenced as column(2).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dlookup 7
Dlookup is broken... 1
Dlookup 6
DLookUp Function 1
dlookup 2
Dlookup 4
Dlookup and Conditional Formatting 3
DLookup 1

Top