我在query2
上获得了query1
,在query1
中有一个结果为"yes"
或"no"
的表达式:
expr1:IIf(DateSeriel(Year([date1])+[runtime];Month([date1])+[runtime2];Day([date1]))>Date();"yes";"no")
结果很好,但query2上的where子句现在产生数据类型不匹配
SELECT tbl1.customer
FROM query1
WHERE (query1.[expr1]="yes");
'yes'
或将其更改为TRUE
/ FALSE
也无效。有任何想法吗?感谢
答案 0 :(得分:0)
没有回答这个特定的问题,但解决方法......
我做了另一个临时表,其中包含由class Program
{
static string IsSameFile = string.Empty; // USE STATIC FOR TRACKING
static void Main(string[] args)
{
string SourceFolderPath = "D:\\SourcePath";
string DestinationFolderPath = "D:\\DestinationPath";
FileSystemWatcher FileSystemWatcher = new FileSystemWatcher();
FileSystemWatcher.Path = SourceFolderPath;
FileSystemWatcher.IncludeSubdirectories = false;
FileSystemWatcher.NotifyFilter = NotifyFilters.LastWrite;
FileSystemWatcher.Filter = "*.txt";
FileSystemWatcher.Changed += FileSystemWatcher_Changed;
FileSystemWatcher.EnableRaisingEvents = true;
Console.Read();
}
static void FileSystemWatcher_Changed(object sender, FileSystemEventArgs e)
{
if (e.Name == IsSameFile) //SKIPS ON MULTIPLE TRIGGERS
{
return;
}
else
{
string SourceFolderPath = "D:\\SourcePath";
string DestinationFolderPath = "D:\\DestinationPath";
try
{
// DO SOMETING LIKE MOVE, COPY, ETC
File.Copy(e.FullPath, DestinationFolderPath + @"\" + e.Name);
}
catch
{
}
}
IsSameFile = e.Name;
}
}
过滤的所有记录,并在该表上进行查询。