74 No.3 0999500 999500 ACCESS



Similar documents
AccessVBA−‹ŠpŁÒ-flO“Z

コンピュータ概論

コンピュータ概論

Excel Excel Excel = Excel III 7 ( ) 1

橡Taro9-生徒の活動.PDF

untitled

<4D F736F F D208DEC90AC837D836A B81698F4390B394C5816A2E646F63>

saihata.doc

My関数の作成演習問題集

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

™ƒŒì„³001†`028.pwd

★分冊3-説明資料PDF用/02-PDF個別

76

' % % &! #


康乘聡子(P105‐121)/康乘聡子 p105‐121

‡Æ‡Ý‡©457_01-12


<8ED089EF8B D312D30914F95742E696E6464>

Excel Excel Excel = Excel ( ) 1

D0120.PDF

A B C B C ICT ICT ITC ICT


45 VBA Fortran, Pascal, C Windows OS Excel VBA Visual Basic Excel VBA VBA Visual Basic For Application Microsoft Office Office Excel VBA VBA Excel Acc

untitled

-34-

B 5 (2) VBA R / B 5 ( ) / 34

橡実践Oracle Objects for OLE





Microsoft Word - VBA基礎(3).docx


,,,,., C Java,,.,,.,., ,,.,, i



DOUSHISYA-sports_R12339(高解像度).pdf

What does MTI do?

kwcR3.0 Release Note

スライド 1

はじめに

1-18

Lesson 1 1 EXVBA2000 Lesson01 Lesson01.xls 2

csj-report.pdf

CONTENTS

Microsoft Word - Win-Outlook.docx

DAOの利用

〈論文〉興行データベースから「古典芸能」の定義を考える

FA


07_高平小百合.indd

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

16_.....E...._.I.v2006

ACS電子ジャーナル利用マニュアル

Oracle Lite Tutorial

/toushin/.htm GP GP GP GP GP p.

Kyushu Communication Studies 第2号

*Ł\”ƒ‚ä(DCH800)

Core Ethics Vol. a


本サンプル問題の著作権は日本商工会議所に帰属します また 本サンプル問題の無断転載 無断営利利用を厳禁します 本サンプル問題の内容や解答等に関するお問 い合わせは 受け付けておりませんので ご了承ください 日商プログラミング検定 STANDARD(VBA) サンプル問題 知識科目 第 1 問 ( 知

SD SD

工夫したエクセルの使い方

血統詳細‐本番/3日目 482‐750


How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

19 Systematization of Problem Solving Strategy in High School Mathematics for Improving Metacognitive Ability

Transcription:

Mar.2003 73 ACCESS ACCESS EXCEL EXCEL

74 No.3 0999500 999500 ACCESS

Mar.2003 75

76 No.3

Mar.2003 77 temp EXCEL EXCEL

No.3 78 seikika.txt

Mar.2003 79 EXCEL Personal.xls Visual Basic Editor VBA Project(PERSONAL.XLS) Module1 seikika.txt EXCEL PERSONAL.XLS! Format C$ = Format(cells(1,1).value, 0000000 ) C$ C$

80 No.3 Sub 7 () = Cells(1, 1).CurrentRegion.Rows.Count ' ' Columns("A:A").Select Selection.NumberFormatLocal = "@" ' A For i = 2 To Next i End Sub C$ = Format(Cells(i, "A").Value, "0000000") Cells(i, "A").Value = C$ EXCEL ACCESS EXCEL Cells.Replace what:=, replacement:= Replace what replacement what what:= replacement:=

Mar.2003 81 Sub () ' Range("C1").Select Cells.Replace what:=" ", replacement:=" " Cells.Replace what:=" ", replacement:=" " Cells.Replace what:=" ", replacement:=" " Cells.Replace what:="", replacement:="" ' Cells.Replace what:=" ", replacement:="" Cells.Replace what:="", replacement:="" End Sub ACCESS SQL ACCESS VBA SQL SQL mysql

82 No.3 &_ SQL VBA DoCmd RunSQL DoCmd RunSQL mysql VBA DoCmd SQL

Mar.2003 83

84 No.3 () 10 () ======SQL ()===== SELECT M. INTO T_ FROM T_ M WHERE (M. ='" & jyoken_string & "') AND M. <> 'D' jyoken_string () temp ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. NOT IN (SELECT N. from T_ N) ORDER BY M. () temp 10 ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. IN (SELECT N. from T_ N) ORDER BY M. 10

Mar.2003 85 () ======SQL ()===== SELECT M. INTO T_ FROM T_ M WHERE (M. ='" & jyoken_string & "') AND M. <> 'D' 11 jyoken_string jyoken_string ====== ()===== jyoken_string = jyoken_kamoku(1) For i = 2 To kamokusu jyoken_string = jyoken_string & "'" & " or M. = '" & jyoken_kamoku(i) Next i 212 () temp ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. IN (SELECT N. FROM T_ N GROUP BY N. HAVING COUNT(*) = " & kamokusu & " ) ORDER BY M. 13 ()

86 No.3 temp ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. IN (SELECT N. FROM T_ N) ORDER BY M. 14 () temp ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. NOT IN (SELECT N. FROM T_ N) ORDER BY M. 15 () temp ======SQL ()====== SELECT * INTO temp FROM T_ M WHERE M. NOT IN (SELECT N. FROM T_ N GROUP BY N. HAVING COUNT(*) = " & kamokusu & " ) ORDER BY M. 16

Mar.2003 87 Private Sub CB Click() Dim jyoken_string Dim i, j Select Case og_.value Case Is = 1 ' g_mysql = "select* into temp3" &_ " from T_ order by T_. " Case Is = 2 ' ' ' For i = 1 To 10 jyoken_kamoku(i) = "" Next i g_mysql = "" ' i = 0 j = 1 Do Until kamoku_mei(j, 1) = Empty Me(kamoku_mei(j, 1)).SetFocus If Me(kamoku_mei(j, 1)).Value = True Then i = i + 1 jyoken_kamoku(i) = kamoku_mei(j, 2) End If j = j + 1 Loop ' Select Case kamokusu Case Is = 0 '

88 No.3 g_mysql = "select * into temp3" & _ " from T_ order by T_. " Case Is = 1 ' jyoken_string = jyoken_kamoku(1) 'T_ g_mysql = "select M. into T_ from T_ M" & _ " where (M. ='" & jyoken_string & "') and M. <> 'D' " DoCmd.RunSQL g_mysql Me!.SetFocus Select Case.Value Case Is = 1 ' g_mysql = "select * into temp3 from T_ M" & _ Case Is = 2 End Select " where M. in (select N. from T_ N)" & _ " order by M. " ' g_mysql = "select * into temp3 from T_ M" & _ " where M. not in (select N. from T_ N)" & _ " order by M. " Case Is > 1 ' ' jyoken_string = jyoken_kamoku(1) For i = 2 To kamokusu Next i jyoken_string = jyoken_string & "'" & " or M. = '" & jyoken_kamoku(i) 'T_ g_mysql = "select M. into T_ from T_ M" & _

Mar.2003 89 " where (M. ='" & jyoken_string & "') and M. <> 'D' " DoCmd.RunSQL g_mysql Me!.SetFocus Select Case.Value End Select End Select Case Is = 1 ' g_mysql = "select * into temp3 from T_ M" & _ Case Is = 2 " where M. in (select N. from T_ N" & _ " group by N. having count(*) = " & kamokusu & " ) " & _ " order by M. " ' g_mysql = "select * into temp3 from T_ M" & _ " where M. in (select N. from T_ N)" & _ Case Is = 3 " order by M. " ' g_mysql = "select * into temp3 from T_ M" & _ " where M. not in (select N. from T_ N)" & _ " order by M. " Case Is = 4 End Select ' g_mysql = "select * into temp3 from T_ M" & _ " where M. not in (select N. from T_ N" & _ " group by N. having count(*) = " & kamokusu & " ) " & _ " order by M. " DoCmd.OpenForm "F_ ", acnormal End Sub

90 No.3

Mar.2003 91 Abstract The trial production of a students' completion situation check program Yumi HIRATA and Motonobu YONEKAWA We made the program for checking the subject, which attendance students already studied, and their results. This program makes easy that teachers grasp the contents which attendance students have already learned. Furthermore, this program enables smooth implementation of the number restrictions of completion persons of a class.