English 中文(简体)
if if
原标题:nested if-statement to change suffix
  • 时间:2011-10-17 04:44:13
  •  标签:
  • ms-access

pls give me the SQL to copy and paste in order to make an nested if statement that meets the following 3 conditons. Thank you very much in advance:

  1. 如果实地的“活动编号”没有包含“/”特性,例如“1-100ZUOM1”,那么就添加了“suffix”/1,例如“1-100ZUOM1/1”。

  2. if it already does contain a suffix like ”/1” e.g. ”1-100ZUOM1/1”, then change the last character to “2” e.g. ”1-100ZUOM1/2”

  3. 如果它已经包含像“....../2”这样的图象,例如“1-100ZUOM1/2”,那么最后的特性就改为“3”,例如“1-100ZUOM1/3”。

    INSERT INTO tbl_All_workorders ( [Activity Number] ) SELECT AW.[Activity Number] FROM tbl_All_workorders AS AW;

问题回答

考虑改变你的设计,以便把活动编号分成两栏,以便其数字出现在自己的分类栏中。 这样,你的卡片更新将非常容易地保持,活动号码可以很容易地加以压缩,以展示,并可能利用世界基督教协进会。





相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签