![]() | แนะนำ ไมโครซอฟต์แอคเซส ( MS Access ) | ![]() |
![]() | INTRODUCTION
ไม่มีใคร .. ศึกษาอะไร ได้ทุกแง่มุม แล้วสามารถจดจำได้ .. ตลอดไป ผมยังจำไม่ได้เลยว่า มื้อเที่ยงเมื่อวาน เคี้ยวข้าวไปกี่คำ .. ทั้ง ๆ ที่ทำด้วยตนเองมาแล้ว แค่นี้ผมยังจำไม่ได้เลย .. | |||
| ||||
| แผนการสอน : แบบแบ่งเป็นตอน |
|
ตอนที่ 1 : หัดสร้างตาราง และใช้งาน
ตอนที่ 2 : เริ่มโปรแกรมเบื้องต้น ตอนที่ 3 : เรียนรู้ sql เพื่อจะได้ประยุกต์ใช้ต่อไป ตอนที่ 4 : เรียนรู้ Form บันทึกข้อมูล และปุ่ม (อย่างง่ายตารางเดียว) ตอนที่ 5 : ใช้ form ปรับปรุงข้อมูล (หัวข้อนี้ ท่านอาจประยุกต์ได้หลากหลาย)
|
การแปลงฐานข้อมูล
- เพื่อนส่งแฟ้มที่สร้างจาก 2000 แต่ที่บ้านมี 97 ที่ทำงานมี 2003 - ผมจึงต้องไปเปิดที่ทำงานด้วย 2003 แล้วแปลงเป็น 97 เพื่อนำมาพัฒนาต่อที่บ้าน |
Tables ::|
Querys :: |
Forms :: | ตัวอย่างคำสั่ง DoCmd.GoToRecord , , acNewRec
Reports :: | ตัวอย่างคำสั่ง =Int(Left(Format(Date()-[Datebirth],"yyyy")-1900,2))
Macros :: | ตัวอย่างโปรแกรม
Modules :: | ตัวอย่างโปรแกรม Dim i, j As Integer j = 0 For i = 1 To getint Next MsgBox j Dim c, d, e call cutfield("boy|bb|ccc|dddd",1) Function cutfield(s As String, fld As Integer) c = InStr(s, "|") Debug.Print Mid$(s, 1, c - 1) s = Mid$(s, c + 1) c = InStr(s, "|") Debug.Print Mid$(s, 1, c - 1) s = Mid$(s, c + 1) c = InStr(s, "|") Debug.Print Mid$(s, 1, c - 1) End Function |
|
![]() | ? Can't Find Project or Library
|
- การลง Office97 และ Office2003 ในเครื่องเดียวกัน ต้องลง Office97 ก่อน
| มิเช่นนั้น จะทำให้ Microsoft Access 97 ใช้งานไม่ได้ แม้จะถอนแล้วลงใหม่ก็ใช้ไม่ได้ - การใช้ Microsoft Access 97 ใน WinXP ที่ใช้ database เป็น data type ต้อง Add Reference : Microsoft DAO 3.5 Object Library แต่ใน Win98 ยังไม่ OK ใช้ DOS>regsvr32 "c:\program files\common files\microsoft shared\dao\dao350.dll" อ่านจาก http://allenbrowne.com/ser-38.html | |
Microsoft Access Data Types
(?)
| Data Type |
Use For |
Size |
Text |
Text or combinations of text and numbers, such as addresses.
Also numbers that do not require calculations, such as phone numbers,
part numbers, or postal codes. |
Up to 255 characters. Microsoft Access only stores the characters
entered in a field; it does not store space characters for unused
positions in a Text field. To control the maximum number of characters
that can be entered, set the FieldSize property. |
Memo |
Lengthy text and numbers, such as notes or descriptions. |
Up to 64,000 characters. |
Number |
Numeric data to be used for mathematical calculations, except
calculations involving money (use Currency type). Set the FieldSize
property to define the specific Number type. |
1, 2, 4, or 8 bytes. 16 bytes for Replication ID (GUID) only. Click here for more information on changing Number field sizes.Date/Time |
Dates and times. |
8 bytes. |
Currency |
Currency values. Use the Currency data type to prevent rounding
off during calculations. Accurate to 15 digits to the left of
the decimal point and 4 digits to the right. |
8 bytes. |
AutoNumber |
Unique sequential (incrementing by 1) or random numbers automatically
inserted when a record is added. |
4 bytes. 16 bytes for Replication ID (GUID) only. |
Yes/No |
Fields that will contain only one of two values, such as Yes/No,
True/False, On/Off. |
1 bit. |
OLE Object |
Objects (such as Microsoft Word documents, Microsoft Excel
spreadsheets, pictures, sounds, or other binary data), created
in other programs using the OLE protocol, that can be linked to
or embedded in a Microsoft Access table. You must use a bound
object frame in a form or report to display the OLE object. |
Up to 1 gigabyte (limited by disk space). |
Hyperlink |
Field that will store hyperlinks. A hyperlink can be a UNC
path or a URL. |
Up to 64,000 characters. |
Lookup Wizard |
Creates a field that allows you to choose a value from another
table or from a list of values using a combo box. Choosing this
option in the data type list starts a wizard to define this for
you. |
The same size as the primary key field that is also the Lookup
field; typically 4 bytes. |
| |||
Numeric Field Size Properties
(?)
| Setting |
Description |
Decimal Precision |
Storage Size |
Byte |
Stores numbers from 0 to 255 (no fractions). |
None |
1 byte |
Integer |
Stores numbers from –32,768 to 32,767 (no fractions). |
None |
2 bytes |
Long Integer |
(Default) Stores numbers from –2,147,483,648 to 2,147,483,647
(no fractions). |
None |
4 bytes |
Decimal |
Stores numbers from -10^38 -1 through 10^38 -1 (.adp) |
Stores numbers from-10^28 -1 through 10^28 -1 (.mdb) 28 |
12 bytes |
Single |
Stores numbers from –3.402823E38 to |
–1.401298E–45 for negative values and from 1.401298E–45 to 3.402823E38 for positive values. 7 |
4 bytes |
Double |
Stores numbers from –1.79769313486231E308 to –4.94065645841247E–324
for negative values and from 1.79769313486231E308 to 4.94065645841247E–324
for positive values. |
15 |
8 bytes |
Replication ID |
Globally unique identifier (GUID) |
N/A |
16 bytes |
| |||
| Date | Version | Version number |
Supported OS | Office suite version |
|---|---|---|---|---|
| 1992 | Access 1.1 |
|
Windows 3.1x | |
| 1993 | Access 2.0 |
|
Windows 3.1x | Office 4.3 Pro |
| 1995 | Access for Windows 95 |
|
Windows 95 | Office 95 Professional |
| 1997 | Access 97 |
|
Windows 9x, NT 3.5/4.0 | Office 97 Professional and Developer |
| 1999 | Access 2000 |
|
Windows 9x, NT 4.0, 2000 | Office 2000 Professional, Premium and Developer |
| 2001 | Access 2002 |
|
Windows 98, Me, 2000, XP | Office XP Professional and Developer |
| 2003 | Access 2003 |
|
Windows 2000, XP | Office 2003 Professional and Professional Enterprise |
| 2007 | Microsoft Office Access 2007 |
|
Windows XP SP2, Vista | Office 2007 Professional, Professional Plus, Ultimate and Enterprise |
There are no Access versions between 2.0 to 7.0 because the Windows 95 version was launched with Word 7. All of the Office 95 products have OLE 2 capabilities, and Access 7 shows that it was compatible with Word 7.