Using "Like" in vba code?

DeanRowe

Registered User.
Local time
Today, 12:33
Joined
Jan 26, 2007
Messages
142
Hi,

I've tried to search for "use Like in vba" and "like in code" but I can't find anything similar. Does anyone know how to use the like function in vba?

here's the statement i'm trying to write:

If me.transaction_code.value = like "RC"* then
me.Internet_Order.value = true

any help would be fantastic, thank you
 
It's Like or =, not both (and the wildcard would go inside the quotes).
 

Users who are viewing this thread

Back
Top Bottom