|
重要 Access Services 2010 和 Access Services 2013 將從下次發行的 SharePoint 中移除。 建議您不要建立新的 Web 應用程式,並將現有的應用程式移轉至替代的平台,例如 Microsoft Power Apps。 您可以與 Dataverse 共用 Access 資料,這是一個雲端資料庫,您可以在其中組建 Power Platform 應用程式、自動化工作流程、虛擬代理程式以及其他適用於網路、手機或平板電腦的程式。 如需詳細資訊,請參閱 開始使用:將 Access 資料移轉到 Dataverse。 |
您可以取代相容性檢查程式在 Web 相容性問題表格中識別為問題的運算式,以解決 Access Web 資料庫中的運算式相關相容性檢查程式錯誤。
本主題列出在 Access Web 資料庫中支援及不支援的運算式和內容。 您可以使用支援的運算式來取代相容性檢查程式識別為與 Web 不相容的運算式。
如需相容性檢查程式錯誤的一般資訊,請參閱 Web 相容性檢查一般錯誤一文。
附註: 本文適用於 Access Web 資料庫 (在 Access 2010 推出),其與 Access Web 應用程式 (在 Access 2013 推出) 不同。
本文內容
概觀
在傳統的 Access 桌面版資料庫中,運算式的評估都相同,無論運算式發生在何處。 也就是說,無論運算式是在查詢資料行、表單控制項或報表頁尾中,其運作方式都相同。
在 Access Web 資料庫中,運算式會以內容進行評估,而某些運算式在某些內容中有效,但在其他內容中則無效。 例如,在 Web 表單控制項中運作的運算式可能無法在 Web 查詢中運作。
當您從頭開始設計 Access Web 資料庫物件或使用範本來開始時,不需要擔心內容,因為 Access 會防止您輸入無法在您作業的內容中評估的運算式。 但是,如果您想要轉送現有的資料庫,並發佈至 Web,資料庫中的某些運算式可能無法如預期運作。
您可以執行相容性檢查程式,以幫助您識別這類潛在問題。 您可能是在執行相容性檢查程式,然後按一下 Web 相容性問題表格中的儲存格之後,到達本主題。 本主題列出您可以在每個內容中使用的運算式,以幫助您解決相容性檢查程式發現的問題。
支援的運算式資料表
請參閱這份根據內容支援的運算式清單,以取代相容性檢查程式識別為問題的運算式。
一般存取
Web 資料庫的一般存取內容中允許下列運算式。
轉換
CDblDateSerialFormatCurrencyFormatDateTimeFormatNumberFormatPercentNz
Database
CurrentWebUserCurrentWebUserGroupsIsClientIsCurrentWebUserInGroup
日期/時間
DateDateSerialNow
Inspection
IsNull
數學
Round
程式流程
IIf
SQL 彙總
AvgCountSum
文字
InStrLCaseLCase$LeftLeft$LenMidMid$RightRight$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/+<<=<>=>>=AndNotOr
計算資料行
Web 資料庫的計算資料行內容中允許下列運算式。
轉換
AscCDblDateSerialDayHourMinuteMonthSecondStrStr$TimeSerialWeekdayYear
日期/時間
DateSerialDayHourMinuteMonthMonthNameSecondTimeSerialWeekdayWeekdayNameYear
Financial
DDBFVIPmtNPerPmtPPmtPVRateSLNSYD
Inspection
IsEmptyIsNull
數學
AbsAtnCosExpFixIntLogRoundSignSinSqrTan
程式流程
ChooseIIf
文字
AscInStrLCaseLCase$LeftLeft$LenMidMid$RightRight$SpaceSpace$StringString$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/\^+<<=<>=>>=AndInLikeNotOr
驗證規則
Web 資料庫的驗證規則內容中允許下列運算式。
轉換
AscCDblDateSerialDayHourMinuteMonthSecondStrStr$TimeSerialWeekdayYear
日期/時間
DateDateSerialDayHourMinuteMonthMonthNameNowSecondTimeTimeSerialWeekdayWeekdayNameYear
Financial
DDBFVIPmtNPerPmtPPmtPVRateSLNSYD
Inspection
IsEmptyIsNull
數學
AbsAtnCosExpFixIntLogRoundSignSinSqrTan
文字
AscInStrLCaseLCase$LeftLeft$LenMidMid$RightRight$SpaceSpace$StringString$TrimTrim$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/\^+<<=<>=>>=AndInLikeNotOr
查詢資料行
Web 資料庫的查詢資料行內容中允許下列運算式。
轉換
AscCDblDateSerialDayFormatCurrencyFormatDateTimeFormatNumberFormatPercentHourMinuteMonthNzSecondStrStr$TimeSerialWeekdayYear
Database
CurrentWebUserCurrentWebUserGroupsIsCurrentWebUserInGroup
日期/時間
DateDateSerialDayHourMinuteMonthMonthNameNowSecondTimeTimeSerialWeekdayWeekdayNameYear
Financial
DDBFVIPmtNPerPmtPPmtPVRateSLNSYD
Inspection
IsEmptyIsNull
數學
AbsAtnCosExpFixIntLogRoundSignSinSqrTan
程式流程
ChooseIIf
文字
AscInStrLCaseLCase$LeftLeft$LenMidMid$RightRight$SpaceSpace$StringString$TrimTrim$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/\+<<=<>=>>=AndInLikeNotOr
UI 巨集
Web 資料庫的 UI 巨集內容中允許下列運算式。
轉換
CDblDateSerialFormatCurrencyFormatDateTimeFormatNumberFormatPercentNz
Database
CurrentWebUserCurrentWebUserGroupsIsClientIsCurrentWebUserInGroup
日期/時間
DateDateSerialNow
Inspection
IsNull
數學
Round
程式流程
IIf
文字
InStrLCaseLCase$LeftLeft$LenMidMid$RightRight$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/+<<=<>=>>=AndNotOr
資料巨集
Web 資料庫的資料巨集內容中允許下列運算式。
轉換
AscCDblDateSerialDayFormatCurrencyFormatDateTimeFormatNumberFormatPercentHourMinuteMonthNzSecondStrStr$TimeSerialWeekdayYear
日期/時間
DateDateSerialDayHourMinuteMonthMonthNameNowSecondTimeTimeSerialWeekdayWeekdayNameYear
Financial
DDBFVIPmtNPerPmtPPmtPVRateSLNSYD
Inspection
IsEmptyIsNullUpdated
數學
AbsAtnCosExpFixIntLogRoundSignSinSqrTan
程式流程
ChooseIIf
文字
AscInStrLCaseLCase$LeftLeft$LenMidMid$RightRight$SpaceSpace$StringString$TrimTrim$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/\^+<<=<>=>>=AndInLikeNotOr
表單
Web 資料庫的表單內容中允許下列運算式。
轉換
CDblDateSerialFormatCurrencyFormatDateTimeFormatNumberFormatPercentNz
Database
CurrentWebUserCurrentWebUserGroupsIsClientIsCurrentWebUserInGroup
日期/時間
DateDateSerialNow
Inspection
IsNull
數學
Round
程式流程
IIf
SQL 彙總
AvgCountSum
文字
InStrLCaseLCase$LeftLeft$LenMidMid$RightRight$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/+<<=<>=>>=AndNotOr
報表
Web 資料庫的報表內容中允許下列運算式。
轉換
AscCDblDateSerialDayFormatCurrencyFormatDateTimeFormatNumberFormatPercentHourMinuteMonthNzSecondStrStr$TimeSerialWeekdayYear
日期/時間
DateDateSerialDayHourMinuteMonthMonthNameNowSecondTimeTimeSerialWeekdayWeekdayNameYear
Financial
DDBFVIPmtNPerPmtPPmtPVRateSLNSYD
Inspection
IsEmptyIsNull
數學
AbsAtnCosExpFixIntLogRoundSignSinSqrTan
程式流程
ChooseIIf
SQL 彙總
AvgCountMaxMinStDevStDevPSumVarVarP
文字
AscInStrLCaseLCase$LeftLeft$LenMidMid$RightRight$StringString$TrimTrim$UCaseUCase$
常數
""- EmptyStringFalseNullTrue
運算子
-&*/\^+<<=<>=>>=AndInLikeNotOr