¸÷λ´óϺ£¬Ð¡µÜÓõÄÊÇADOÁ¬½ÓACCESSÊý¾Ý¿â£¬ÓÃDBGridÏÔʾ²éѯµÄÊý¾Ý£¬ÎÒ×öµÄÊǸöÊý¾Ý²É¼¯ÏµÍ³£¬¸ù¾Ý²»Í¬µÄµØÖ·°ÑÊý¾Ý·ÅÔÚACCESSÊý¾Ý¿âÖв»Í¬µÄ±íÀïÃ棬ÏÖÔÚÎÒÏë²éѯijһ¶Îʱ¼äÄÚËùÓбíÄÚµÄÊý¾Ý£¬²¢ÇÒÔÚDBGridÖÐÏÔʾ³öÀ´£¬ÇëÎÊÕâ¸öÓ¦µ±ÈçºÎ²Ù×÷£¬ÓÃADOQuery.addº¯ÊýÓ¦¸ÃÔõÑùдSQLÓïÑÔÄØ£¿ÍûÓоÑéµÄ´óÏÀ¸æÖªÒ»¶þ£¬²»Ê¤¸Ð¼¤£¡ÉèÖÃʱ¼äÔÚÒ»¸öÇøÓò°¡¡£between ÎÒ´æÔÚ²»Í¬µÄ±íÄÚ£¬ÔõÑùÄܰѲ»Í¬±íµÄÊý¾Ý¶¼²é³öÀ´È»ºóÔÚDBGridÀïÃæÏÔʾ select xxx,xxx,xxx from table union select xxx union
µÃ±£Ö¤selectÖÐ×Ö¶ÎÀàÐÍ ¸öÊýÒ»Ö£¬ ....¿´´íÁË£¬ÒÔΪÔÚÒ»¸ö±í¡£¡£ ÎÒ³¢ÊÔÁËһϣ¬ÕâÑùµÄ»°Ö»Äܲéѯµ½Âú×ãµÚÒ»¸ö±íÌõ¼þµÄÊý¾Ý£¬ÇëÎÊÄܸüÏêϸһµãÂ𣿠ACCESS²»Ö§³Ö¶àÓï¾ä²éѯ Ïë°ÑËùÓÐ±í¶¼ÏÔʾÔÚÒ»¸ögridÖУ¬³ý·ÇÄãµÄ×ֶζ¼ÊÇÒ»ÑùµÄ£¬ÄÇÑù¿ÉÒÔʹÓÃunionÁªºÏ£¬·ñÔòµÄ»°£¬dbgridÊÇ×ö²»µ½ÁË£¬¿ÉÒÔ¿¼ÂÇcxgrid£¬Ö§³Ö¶à¸öview ×öÒ»¸öÁÙʱµÄÊý¾Ý¿â±í£¬Ñ¡Ôñ²åÈëµ½ÁÙʱ±íÀÔÙ²éѯ¡£Äã¿ÉÒÔÊÔһϡ£ ×éºÏ²éѯ+ÁªºÏ²éѯ¡£ ¹Ø¼ü¿´ÄãÒª²éѯ±íµÄ½á¹¹¼°±íÓë±íÖ®¼äµÄ¹Øϵ£¡ ÓÃselectÓï¾äÌõ¼þΪbetween¡£ unionÓï¾ä select * from *.MDB where Time= Data = select ÁÐ1 from ±í1 where ÈÕÆÚ between ... union all select ÁÐ1 from ±í2 where ÈÕÆÚ between ... union all select ÁÐ1 from ±í3 where ÈÕÆÚ between ... ...