A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

* problem



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2005, 04:13 PM
James
external usenet poster
 
Posts: n/a
Default * problem

Hello All,

I am using the following code to split one field into 3. It searches the
original field for text and then if it is there it fills one of the new
fields with that text.

IIf(([hons]="*PM.Cert*"),"PM.Cert",IIf(([hons]="*PM.Dip*"),"PM.Dip",""))

Now this worked fine the first couple of runs. However it has stopped
working now. It works fine if I take the * out, but unfortunaly the original
field has other text in it as well.

Any suggestions would be very helpful.
Many thanks James.
  #2  
Old April 19th, 2005, 05:52 PM
MGFoster
external usenet poster
 
Posts: n/a
Default

IIf([hons] Like "*PM.Cert*", "PM.Cert",
IIf([hons] Like "*PM.Dip*", "PM.Dip",""))

--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)

James wrote:
Hello All,

I am using the following code to split one field into 3. It searches the
original field for text and then if it is there it fills one of the new
fields with that text.

IIf(([hons]="*PM.Cert*"),"PM.Cert",IIf(([hons]="*PM.Dip*"),"PM.Dip",""))

Now this worked fine the first couple of runs. However it has stopped
working now. It works fine if I take the * out, but unfortunaly the original
field has other text in it as well.

Any suggestions would be very helpful.
Many thanks James.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rec. Nav. problem cause by checkboxes/Conditional formatting Shelbygt22 General Discussion 0 March 22nd, 2005 04:59 PM
Strange problem with different networks. Adam General Discussion 1 March 13th, 2005 10:17 PM
IE6 & Outlook Problem (Strange Problem)! KW Outlook Express 4 February 1st, 2005 08:31 AM
Reinstalling OE... KAR Outlook Express 24 August 21st, 2004 06:52 PM
Productkey problem when installing office 2003 on network Stefan Schreurs Setup, Installing & Configuration 1 June 1st, 2004 11:16 PM


All times are GMT +1. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.