查询帮助...... [英] query help...

查看:62
本文介绍了查询帮助......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是包含样本数据的数据库。

http:/ /download.yousendit.com/AAA18BC7520F196E


我想使用qryCrosstab和表格ALL实现看起来像这个查询qryFinalResult的结果。


表[ALL]有一个名为filename的字段,它存储qryFinalResult正在使用的表名。


可能????


有人可以帮忙吗?最近48小时坚持这个。

Here is the db with sample data.

http://download.yousendit.com/AAA18BC7520F196E

I want to use qryCrosstab and table "ALL" to achieve the result that would look like this query "qryFinalResult".

Table [ALL] has a field called filename and it stores the table names that qryFinalResult is using.

Is it Possible ????

Can someone please please help ? stuck with this for last 48 hours.

推荐答案

有人请求帮助吗?


1.我用vba导入一堆excel文件到单个表中。

表以excel文件命名。在这些新的

表中创建了一个名为FileName的字段。并且它填充了文件名。


2.我这样做,所以我知道数据来自哪个文件


3 。表ALL将填充所有这些excel数据和文件的

名称。


交叉表正在使用[ALL]表格和aggegating小时,comp和

其他数据元素。


FinalResult是交叉工具,我做正确的连接从交叉表和所有数据中提取
数据从每张桌子。


有没有办法我只能使用表格[ALL]和qrycrosstab使我的

看起来像qrufinalresult?


是否有一个vba可以在交叉表之间自动加入

和导入的所有表格(除了表格ALL)?


这是给我所有表名的查询。


SELECT DISTINCT MSysObjects.Name

FROM MSysObjects

WHERE( ((MSysObjects.Name)Not Like" msys *" And(MSysObjects.Name)Not

like" all *")AND((MSysObjects.Type)= 1));
Can someone pleas help ?

1. I use a vba to import bunch of excel files into individual tables.
Tables are named after the excel file. A field is created in these new
tables called "FileName" and it''s populated with the filename.

2. I am doing this so I know what file the data came from

3. table "ALL" gets populated with all of these excel data and the
name of the file.

The crosstab is taking [ALL] table and aggegating hours, comp and
other data elements.

FinalResult is takign the crosstab and i m doing right join to pull
data from crosstab and all the data from each tables.

Is there a way I can only use table [ALL] and qrycrosstab to make my
look like qrufinalresult ?

Is there a vba that will do right join automatically between crosstab
and all the table in import (except table ALL)?

Here is the query that gives me all the table name.

SELECT DISTINCT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Name) Not Like "msys*" And (MSysObjects.Name) Not
Like "all*") AND ((MSysObjects.Type)=1));


论坛所有者:如果没有人参加,请删除此帖子要回答它。我真的很沮丧并且对某些帮助或方向感到不满。
Forum Owners: DELETE THIS POST IF NO ONE GOING TO ANSWER IT. I AM REALLY FRUSTRATED AND BEGGING FOR SOME HELP OR DIRECTIONS.



论坛所有者:如果没有人回答,请删除此帖子。我真的很沮丧,并为一些帮助或方向付出了代价。
Forum Owners: DELETE THIS POST IF NO ONE GOING TO ANSWER IT. I AM REALLY FRUSTRATED AND BEGGING FOR SOME HELP OR DIRECTIONS.



我们尽一切努力尽快回答问题,但你必须耐心等待。所有专家都会自愿提供时间,您的问题将得到解决。


但是,我会指出一些事情。大多数专家都不想将您的数据库下载到他们的系统中,因此您可以通过提供更多信息来帮助自己。


发布所有表格的元数据。
发布表/数据集元数据

展开 | 选择 | Wrap | 行号


这篇关于查询帮助......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆