comparing value combobox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello I'm stuck

This is what I'm trying to acchieve

I want to find out if the selected value of a combobox is already part of a
table.
If not, then a form must open.
 
You should be able to use code like:

If DCount("*","[a table]","[Part of] = " & Me.AComboBox) > 0 Then
or if [Part of] is text
If DCount("*","[a table]","[Part of] = """ & Me.AComboBox & """") > 0 Then
 

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

Back
Top