[mso] Access 2000 Query

Hi Everyone,

Is it possible that anyone has an example of using IIF in the criteria
of an update query please?

I want to update a field called fACTION in a table dpending on the
value of a field in another table.

The main table contains file names as fName... this has the Name and
extension like a "normal" filename.
The other table has an fName field and an fACTION field.
I'm trying to use "like" to set an fAction field in the main table to
be the same as the one for the "action" table.

Here is SQL that works so far from an update query I've made.
UPDATE tblFileMatch, tblFiles
SET tblFiles.fAction = [tblFileMatch].[fAction]
WHERE (((tblFiles.fName) Like [tblFileMAtch].[fName]));

I'd like to check the value of tblFileMatch.fAction and put different
things into tblFiles.Action depending on what's there. Has anyone any
suggestions/ideas please?

Regards
Lisa


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: