Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft speak for If/Then???

Status
Not open for further replies.

Microbabble

Technical User
Aug 31, 2001
5
US
I'm trying to get Access to look at a field, compare it to a text if the field is a certain text value then update another field with the output I want. I think the problem is in my syntax but my knowledge base is very limited.

I am trying to do this using a macro (set value command).

=IIf([TYear]= FY, [Cut Off] "30 SEP", [Cut Off] "31 DEC")

any help would be appreciated.
 
I would think if you just put this as the default value in the cutoff field it would work

=IIf([TYear]= FY, "30 SEP", "31 DEC")

again this is said with me assuming a lot of things.
good luck

 
I tried your suggestion and it worked on the form. Unfortunately, it doesn't seem to update the table. So I am back to attempting to write a macro. I know this should be stupid simple but nothing I have tried has worked. There is another problem I would like it to check for data in another field (Accumulation Year)if data is present then update the the (Cut Off) field based on what is present in the (Type Year) field.

Thanks Again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top