English 中文(简体)
学历
原标题:Query IIf Formula
  • 时间:2024-03-12 05:44:41
  •  标签:
  • ms-access
问题回答

1. 与下列方面有关的事项:

CheckTS: IIf([Spasi]=25 And ([CheckTSX]<=2,5 Or [CheckTSY]<=2,5);"Correct";IIf([Spasi]=50 And ([CheckTSX]<=5 Or [CheckTSY]<=5);"Correct";IIf([Spasi]=100 And ([CheckTSX]<=10 Or [CheckTSY]<=10);"Correct";IIf([Spasi]=200 And ([CheckTSX]<=20 Or [CheckTSY]<=20);"Correct";"Incorrect"))))

or:

CheckTS: IIf([Spasi] In (25, 50, 100, 200) And ([CheckTSX]<=[Spasi]/10 Or [CheckTSY]<=[Spasi]/10);"Correct";"Incorrect")

谢谢您的回答。

这里是我从前列表格中得出的数据。 最后一个图像站以jpg格式显示,但当我们点击链接来源时,数据并不开放。

档案http:///E:/Tutorial%20Software/Geodatabase/Database%20Desain/GSN_SURVEY.html

我希望你能够打开上述联系。

I explain again the purpose of my formula. The data is originate from drilling activity coordinate with Total Station and GPS tools. There are several distance between coordinate hole, i call my data spasi in table field. The values of spasi like 25 meter, 50 meter, 100 meter and 200 meter with the error dictance tolerance are 10% for each spasi.

核对表、核对表、核对表、核对表X和核对表系统显示,在计划和协调方面有差异X和Y,从总站和全球定位系统工具衡量。 差异4领域的结果与错误的远程容忍的价值观不相同。

为此原因,我要检查公式。 我试图以表格方式在问询和 vba法典中使用“f”公式。 我希望能用两种方式。

缩略语:

Private Sub txtcheck_Click() Dim CheckSurveyXTS As Integer Dim CheckSurveyYTS As Integer Dim CheckSurveyXGPS As Integer Dim CheckSurveyYGPS As Integer Dim SpasiBor As Integer

SpasiBor = Me!txtDrillSpacing
CheckSurveyXTS = Me!txtXCollar - Me!XPlan
CheckSurveyYTS = Me!txtYCollar - Me!YPlan
CheckSurveyXGPS = Me!XPostdrillGPS - Me!XPlan
CheckSurveyYGPS = Me!YPostdrillGPS - Me!YPlan

If SpasiBor = 25 And CheckSurveyXTS <= 2.5 Or CheckSurveyYTS <= 2.5 And CheckSurveyXGPS <= 2.5 Or CheckSurveyYGPS <= 2.5 And SpasiBor = 50 And CheckSurveyXTS <= 5 Or CheckSurveyYTS <= 5 And CheckSurveyXGPS <= 5 Or CheckSurveyYGPS <= 5 And SpasiBor = 100 And CheckSurveyXTS <= 10 Or CheckSurveyYTS <= 10 And CheckSurveyXGPS <= 10 Or CheckSurveyYGPS <= 10 And SpasiBor = 200 And CheckSurveyXTS <= 20 Or CheckSurveyYTS <= 20 And CheckSurveyXGPS <= 20 Or CheckSurveyYGPS <= 20 Then
      do this
    MsgBox ("Correct Collar")
ElseIf SpasiBor = 25 And CheckSurveyXTS > 2.5 Or CheckSurveyYTS > 2.5 And CheckSurveyXGPS <= 2.5 Or CheckSurveyYGPS <= 2.5 And SpasiBor = 50 And CheckSurveyXTS > 5 Or CheckSurveyYTS > 5 And CheckSurveyXGPS <= 5 Or CheckSurveyYGPS <= 5 And SpasiBor = 100 And CheckSurveyXTS > 10 Or CheckSurveyYTS > 10 And CheckSurveyXGPS <= 10 Or CheckSurveyYGPS <= 10 And SpasiBor = 200 And CheckSurveyXTS > 20 Or CheckSurveyYTS > 20 And CheckSurveyXGPS <= 20 Or CheckSurveyYGPS <= 20 Then
      do this
    MsgBox ("Please Check Collar TS")
ElseIf SpasiBor = 25 And CheckSurveyXTS <= 2.5 Or CheckSurveyYTS <= 2.5 And CheckSurveyXGPS > 2.5 Or CheckSurveyYGPS > 2.5 And SpasiBor = 50 And CheckSurveyXTS <= 5 Or CheckSurveyYTS <= 5 And CheckSurveyXGPS > 5 Or CheckSurveyYGPS > 5 And SpasiBor = 100 And CheckSurveyXTS > 10 Or CheckSurveyYTS > 10 And CheckSurveyXGPS <= 10 Or CheckSurveyYGPS <= 10 And SpasiBor = 200 And CheckSurveyXTS <= 20 Or CheckSurveyYTS <= 20 And CheckSurveyXGPS <= 20 Or CheckSurveyYGPS <= 20 Then
      do this
    MsgBox ("Please Check Collar GPS")
Else
      do this
    MsgBox ("Incorrect Collar")
End If

结尾处

如果你想要帮助我解决这一问题,我真心高兴。

谢谢。

file:///E:/Tutorial%20Software/Geodatabase/Database%20Desain/Doc1.htm

这里是我的形式项目。 请看一下。





相关问题
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 ...

热门标签