MS Access中的openReport操作与where条件

时间:2017-11-07 23:15:52

标签: jquery ms-access userform

我是Access的新手,对SQL查询知之甚少。 我有一个简单的ms访问表单,有两个3文本框:

txtStartDate, txtEndDate, cmbAdvNam,

点击一个命令按钮,它执行openReport动作,它有一个where子句" [Mau_con]![Action Date]> = [Forms]![frmReportFilter]![txtStartDate] AND [Mau_con]! [行动日期]< = [表格]![frmReportFilter]![txtEndDate]"

它不生成数据,而如果我只使用第一个子句(在AND之前),那么它会在报告中生成数据。

运行此命令的正确查询是什么?

我想用这个来执行另一个查询,其中仅为顾问的名称提取数据以匹配表中的name列,是否有任何好的教程或文章可以教我如何执行此操作。

提前致谢

1 个答案:

答案 0 :(得分:1)

尝试:

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen 127.0.0.1:80;
        server_name  127.0.0.1;
        root C:\Users\joseantonio\Desktop\apache-tomcat-8.5.23\webapps;


        error_page 500 501 502 503 504 /50x.html;
        location = /50x.html {
            root errors;
            internal;
            allow all;
        }

        location / {
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://127.0.0.1:8081/;
            proxy_connect_timeout 1;
            proxy_next_upstream error timeout http_500 http_502 http_503 http_504 http_404;
            proxy_intercept_errors on;
        }
    }
}

或:

"[Mau_con]![Action Date] Between DateValue([Forms]![frmReportFilter]![txtStartDate]) And DateValue([Forms]![frmReportFilter]![txtEndDate])"