coding for combo box problems - handling entries -

G

Guest

I have my combo box working fine except that when testing it , I found that
if I enter a value that alrealdy exists, an error is generated about
duplicates. I tried doing a dlookup for that problem. It's not working yet,
but is this correct idea?
Also, if I try to delete my entry from the combo box, i get stuck in that
field because it thinks it's a null value. In that case, what's the best way
to handle that kind of situation?
thanks -
 
P

pietlinden

trevi said:
I have my combo box working fine except that when testing it , I found that
if I enter a value that alrealdy exists, an error is generated about
duplicates. I tried doing a dlookup for that problem. It's not working yet,
but is this correct idea?
Also, if I try to delete my entry from the combo box, i get stuck in that
field because it thinks it's a null value. In that case, what's the best way
to handle that kind of situation?
thanks -

what does a duplicate value in your table have to do with a lookup?
Are you saying that you have a unique index on the field you're storing
the result of the combobox? Then you should change the rowsource to
eliminate "used" items. (just use an outer join or use the Find
Unmatched query wizard)
 
G

Guest

it doesnt have anything to do with dlookup. I mentioned dlookup because I
wanted to check for duplicate entries in my combo box before receiving the
"duplicate entry " error that is generated.
 

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

Top