首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Access 2013中具有多个条件的DoCmd.SearchForRecord

在Access 2013中,DoCmd.SearchForRecord是一个用于在表单或报表中查找特定记录的命令。它可以根据指定的条件进行搜索,并将光标定位到符合条件的第一条记录。

DoCmd.SearchForRecord命令的语法如下:

DoCmd.SearchForRecord(ObjectType, ObjectName, Record, WhereCondition, Match, MatchCase, SearchAsFormatted, OnlyCurrentField, FindNext)

参数解释:

  • ObjectType:指定要搜索的对象类型,可以是acForm(表单)或acReport(报表)。
  • ObjectName:指定要搜索的对象的名称。
  • Record:指定要搜索的记录数,可以是acFirst(第一条记录)、acNext(下一条记录)或acPrevious(上一条记录)。
  • WhereCondition:指定搜索的条件,可以是一个字符串表达式,例如:"LastName = 'Smith'"。
  • Match:指定搜索的方式,可以是acEntire(完全匹配)或acAny(部分匹配)。
  • MatchCase:指定搜索时是否区分大小写,可以是True(区分大小写)或False(不区分大小写)。
  • SearchAsFormatted:指定搜索时是否按照格式进行匹配,可以是True(按格式匹配)或False(不按格式匹配)。
  • OnlyCurrentField:指定是否只在当前字段中搜索,可以是True(只在当前字段中搜索)或False(在整个记录中搜索)。
  • FindNext:指定是否继续搜索下一条记录,可以是True(继续搜索)或False(停止搜索)。

DoCmd.SearchForRecord命令的应用场景是在表单或报表中快速定位符合特定条件的记录。例如,可以在一个客户信息表单中使用该命令来查找特定客户的记录。

腾讯云相关产品中,可以使用云数据库SQL Server来存储Access数据库,并通过云服务器来运行Access应用程序。具体产品介绍和链接如下:

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

  • Google Earth Engine——NASA NEX-DCP30数据集(降水和气温)由美国本土的降尺度气候情景组成1km分辨率

    The NASA NEX-DCP30 dataset is comprised of downscaled climate scenarios for the conterminous United States that are derived from the General Circulation Model (GCM) runs conducted under the Coupled Model Intercomparison Project Phase 5 (CMIP5, see Taylor et al. 2012) and across the four greenhouse gas emissions scenarios known as Representative Concentration Pathways (RCPs, see Meinshausen et al. 2011) developed for the Fifth Assessment Report of the Intergovernmental Panel on Climate Change (IPCC AR5). The purpose of these datasets is to provide a set of high resolution, bias-corrected climate change projections that can be used to evaluate climate change impacts on processes that are sensitive to finer-scale climate gradients and the effects of local topography on climate conditions.

    01
    领券