I currently have a excel file that I update from an access query. However, since I have made a code change in access, this is now returning erroneous information. Here are the particulars:
I have a query in Access that utilizes an if statement (actually IIf in the query)and uses the "Left" function to pull the word "new" from a field, with the default being "old" if the first 3 characters did not read "new". It is a file that I get every month. This month, the programmer decided to change the wording so that for month 11, the word "new" appears at the end of the field. Sooo - I changed my query to read:
Iif([obj type]like "*new*","new","old") to get around this and still have the query work on all the past months. It worked. However, when I opened up Excel and hit the refresh key, everything changes to "old". I even tried starting all over and pulled in the data (data/get external data/ create new query) thinking changes in formulas don't save over. It still brings in all "old", even though when I run the query in access it is correct with a mixture of "old" and "new".
Any ideas? This worked fine when I used:
IIf(left([obj type],3)="new","new","old")
Thank you. Marie
I have a query in Access that utilizes an if statement (actually IIf in the query)and uses the "Left" function to pull the word "new" from a field, with the default being "old" if the first 3 characters did not read "new". It is a file that I get every month. This month, the programmer decided to change the wording so that for month 11, the word "new" appears at the end of the field. Sooo - I changed my query to read:
Iif([obj type]like "*new*","new","old") to get around this and still have the query work on all the past months. It worked. However, when I opened up Excel and hit the refresh key, everything changes to "old". I even tried starting all over and pulled in the data (data/get external data/ create new query) thinking changes in formulas don't save over. It still brings in all "old", even though when I run the query in access it is correct with a mixture of "old" and "new".
Any ideas? This worked fine when I used:
IIf(left([obj type],3)="new","new","old")
Thank you. Marie