Popular Usenet Groups

Your one stop shop for all your most popular usenet groups in one place


Categories
Sports Science, Electronics & Maths Hobbies & Recreation
Religion TV & Media Computing - Programming
Music Cycling & Motorsports Computing - General
Photography Computing - Linux Computing - Apple Mac
Others Return to Home Page Register for extra features


Search This Site:

Go Back   Popular Usenet Groups > Computing - Progamming > microsoft.public.access.formscoding

microsoft.public.access.formscoding Coding forms in Microsoft Access


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 26th April 2006, 02:34 PM   #1
gdonald20
 
Join Date: Apr 2006
Age: 58
Total Posts: 2
"Argument not optional" when using Iif

Hi

I have an after update event on a field on my people form.


When i try to debug the code i get an "Argument not optional" error in
relation to the IIf statement.


I used the same code in an update query and it worked perfectly.


PE_Initials = (Left([PE_First_Name], 1) & IIf(InStr(1, [PE_First_Name],
" ") <> 0, Mid([PE_First_Name], InStr(1, [PE_First_Name], " "), 2)))


Can anyone tell me why this doesn't work in the code module.


Thanks


Gillian



gdonald20 is offline   Reply With Quote
 

Bookmarks


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 12:54 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.