If statement depending on part of string appearing inside combo va

B

bUncE

I hope the title makes sense, i'm still getting to grips with programming
terminology :)

Basically i have a combobox which will sometimes contain

DataDate...... or LoginDate..... or DateModified.... etc

I want an If statement to search the combobox value for the word "Date"

Like If Me.cboFields.Value [CONTAINS] "Date" Then

strSQL = ..................................................# date value #

Then if it does contain the words Date it will add some ##'s to my SQL
statement..

I haven't had any luck as of yet (with the If bit the ##s bit is cool) but
was hoping for a push in the right direction or something.

Muchos Gracias

Mike Harkess
 

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


Top