search code

K

kmmuelle

How would I change this piece of code to search and display items from 2
different fields? Say if I searched for "Pen" in one combo box and there
was a pen in the Field item1 and item2 and want them both to be displayed?

If Not IsNull(Me.Combo12) Then
str = str & "([itemid] = " & Me.Combo12 & ") And "
End If

Thank you
 
P

pietlinden

How would I change this piece of code to search and display items from 2
different fields?  Say if I searched for "Pen"  in one combo box and there
was a pen in the Field item1 and item2 and want them both to be displayed?

 If Not IsNull(Me.Combo12) Then
 str = str & "([itemid] = " & Me.Combo12 & ") And "
 End If

Thank you

why do you need to search two different fields for the same data?
Sounds like a normalization issue. Post the relevant table structures.
 

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