运行时错误'3075'访问

时间:2018-06-12 11:15:13

标签: vba ms-access

嘿大家我一直收到以下错误,运行时错误'3075':查询表达式“0”中的字符串语法错误)'

__call__

2 个答案:

答案 0 :(得分:1)

  1. 开始按 F8 ,直至找到有问题的字符串
  2. Ctrl + G
  3. 在你看到的内容上写下这个:
  4. this.sub1 = Observable.combineLatest(this.categoriesService.getCategories(), this.eventsService.getEvents())
      .subscribe((data: [Category[], WFMEvent[]]) => {
        this.categories = data[0];
        this.events = data[1];
        this.isLoaded = true;
    
        this.setOriginalEvents();
        this.calculateChartData();
      });
    
    1. "调试"现在应该很容易,错误必须明显。

答案 1 :(得分:0)

您在字符串构造中错放了刻度(例如')。可能是通过复制和粘贴错误。

示例:

... & ",'" & Me.cboAccessories & ",'" & Me.txtUser & ",'" & Me.txtNumber & ",'" & ...

......应该更接近,

... & ",'" & Me.cboAccessories & '",'" & Me.txtUser & '"," & Me.txtNumber & ",'" & ...

由于我不知道哪些字段是文本,数字,日期或备忘录,因此无法提供虚假答案。也许做一个字符串构造成字符串var和debug.print var来查看结果。

相关问题