Date: Wed, 29 Nov 2000 13:52:11 +0900
From: "kato" <who@example.co.jp>
²ÃÆ£¤Ç¤¹¡£
ËÙÀîÍÍ¡¡Á᡹¤Î¤´»ØƳ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
º£²ó¤Î¤´ÊÖ»ö¤ÎÄ̤ê¤ä¤Ã¤Æ¤¤¤ë¤Ä¤â¤ê¤Ê¤Î¤Ç¤¹¤¬¡¢
¤Þ¤Ã¤¿¤¯¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¤Î¤ÇÅê¹Æ¤·¤¿¤Î¤Ç¤¹¡£
<from¤Ë¤Æ ¥Ç¡¼¥¿Ãê½Ð>
¡¡dim cn as adodb.Connection
dim rs as adodb.Recordset
set cn = currentproject.connection
set rs = new adodb.recordset
cn.execute "create table #kigyojswk (class nvarchar(50),...)",,adcmdtext¡¡
¡¡¡¡¡¡¡
cn.execute "insert into #kigyojswk values (......)"
¡¡docmd.openreport "report̾",acnormal
cn.close
<report¤Ë¤Æ>
Private Sub Report_Open(Cancel As £É£î£ô£å£ç£å£ò¡Ë
me!£ò£å£ã£ï£ò£ä£ó£ï£õ£ò£ó£å = "select * from #kigyojswk;" ¤Þ¤¿¤Ï¡¡¥¹
¥È¥¢¥É̾
¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£¡¤Î»þÅÀ¤Ç¡¢¥µ¡¼¥Ð¡¼Â¦¤ÎTEMPDB¤ÎSYSOBJECTS¤Î
³Îǧ¤Ï¤·¤Æ¤¤¤Þ¤¹¡£¥ì¥Ý¡¼¥È¤Îµ¯Æ°¤Ï¡¢¤Ê¤ó¤À¤«Ê̤Υ³¥Í¥¯¥·¥ç¥ó¤Îµ¤¤¬¤·
¤Þ¤¹¡£°ì»þ¥Æ¡¼¥Ö¥ë¤ÎÊѤï¤ê¤Ë'##kigyojswk'¤Î¤è¤¦¤Ë¥°¥í¡¼¥Ð¥ë¥Æ¡¼¥Ö¥ë¤Ë¤¹¤ë¤È
Àµ¾ï¤Ë°õºþ¤µ¤ì¤Þ¤¹¡£¥ì¥Ý¡¼¥È¤òñÆȤ˼¹Ԥ¹¤ë¤È'#kigyojswk'¤Ï̵¸ú¤Ç¤¹¤È
¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
Ʊ¤¸¼ÁÌä¤òÅê¹Æ¤·¤Æ¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£
[MSDE/SQLServer¤Ë´Ø¤·¤Æ¡¢º£¡¢¤É¤ó¤Ê¤³¤È¤Ë¤ªº¤¤ê¤Ç¤¹¤«¡©] |
¤è¤í¤·¤±¤ì¤Ð¤ªº¤¤ê¤ÎÆâÍƤò¡¢ÅŻҥ᡼¥ë¤Ç¶µ¤¨¤Æ²¼¤µ¤¤¡£ |
¼ÁÌä¤òÅŻҥ᡼¥ë¤ÇºîÀ®¤¹¤ë
|
[¥¦¥£¥ó¥É¤òÊĤ¸¤ë][MSDE/SQLServer FAQ ][MSDE / MSDE2000 µ»½Ñ¥µ¥Ý¡¼¥È¾ðÊó°ìÍ÷]
|