Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2007, 11:11 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Corey
Default Wild Card Help *

Please help me find out why this formula isn’t working right.
I’m able to run my query, but it seems like the wildcards around
the “LAM” is not working. Is there another way I can put this together to get it to see the wildcards “*’”

IIf([Bill_Codes]="*LAM*","symanlam",IIf([MESSAGE_NOTES]="*LAM*","symanlam",([Site_ID])))


Thanks

Corey


 
Old March 1st, 2007, 11:42 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Corey,
Instead of =, you should be using LIKE

HTH,

Kevin

dartcoach





Similar Threads
Thread Thread Starter Forum Replies Last Post
wild & id key comparison and add - discrepancy fin JohnSeito Excel VBA 0 November 27th, 2007 11:32 PM
Like function with wild card and parameter prompt d-fxt Access 1 April 4th, 2007 01:20 AM
Flash Card Karen_ajkk Java Basics 0 February 12th, 2007 03:05 AM
How to use C# to control I/O card? christykong2005 C# 4 February 5th, 2007 03:14 PM
Wild Search function kuku SQL Server 2000 0 November 17th, 2005 11:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.