Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : access

Access ²Ù×÷ѧϰ¼Ç¼

 1.´´½¨ Access Êý¾Ý¿â£¬²¢¹Ø±ÕÆäÁ¬½Ó
Access ²Ù×÷µÄÁ½¸öÒýÓÃ:
1) Microsoft ActiveX Data Objects 2.8 Library
2) Microsoft ADO Ext. 2.8 for DDL and Security
/// <summary>
/// ´´½¨Êý¾Ý¿â²¢·µ»ØÁ¬½Ó×Ö·û´®
/// </summary>
/// <param name="dbName">·¾¶+ÎļþÃû</param>
/// <returns></returns>
public static bool CreateAccess(string dbName)
{
try
{
string databaseConn;
//dbName = @"d:\newAccess.mdb";
databaseConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dbName + ";";
if (File.Exists(dbName)) return false;
// ´´½¨Êý¾Ý¿â
ADOX.CatalogClass accessCatalog = new CatalogClass();
accessCatalog.Create(databaseConn);
#region
//// ´´½¨Ò»¸ö±í
//ADOX.TableClass table = new ADOX.TableClass();
// ......

ÈçºÎ½« Access Êý¾Ý¿âת»»µ½ SQL Server

http://support.microsoft.com/default.aspx/kb/237980/zh-cn
½« Access Êý¾Ý¿âת»»Îª SQL Server µÄ×î¼ò±ã·½·¨ÊÇʹÓÃÉýǨÏòµ¼¡£ÉýǨÏòµ¼£º
±£ÁôÊý¾Ý¿â½á¹¹£¬°üÀ¨Êý¾Ý¡¢Ë÷ÒýºÍĬÈÏÉèÖá£
×Ô¶¯½« Access ÓÐЧÐÔ¹æÔòºÍĬÈÏÉèÖÃת»»ÎªÊʵ±µÄ SQL Server µÈЧÄÚÈÝ¡£
ÔÚÉýǨºó±£³Ö±í¹ØϵºÍ²ÎÕÕÍêÕûÐÔ¡£
ÒªÔÚ Access 2000 ÖÐÔËÐÐÉýǨÏòµ¼£¬ÇëÔÚ“¹¤¾ß”²Ëµ¥ÉÏ£¬Ö¸Ïò“Êý¾Ý¿âʵÓù¤¾ß”£¬È»ºóµ¥»÷“ÉýǨÏòµ¼”¡£
ÔÚ Access 2000 ÖУ¬Ö¸Ïò“Îļþ”²Ëµ¥Éϵēн¨”£¬È»ºóµ¥»÷“´ÓÏÖÓÐÊý¾Ý¿âн¨ÏîÄ¿”¡£´ËÑ¡Ïî¿É´´½¨Ò»¸ö×Ô¶¯Êý¾Ý´¦Àí (ADP) Ó¦ÓóÌÐò¡£´ËÓ¦ÓóÌÐò»á×Ô¶¯½« SQL Server ×ÀÃæÒýÇ棨Ҳ³ÆΪ MSDE 2000£©»ò SQL Server ÓÃ×÷·þÎñÆ÷£¬²¢½« ADP ÎļþÓÃ×÷Ó¦ÓóÌÐò¡£
ÈçͼËùʾ
http://hi.csdn.net/space-1923263-do-album-picid-491587.html
http://hi.csdn.net/space-1923263-do-album-picid-491299-goto-down.html ......

ÈçºÎ½« Access Êý¾Ý¿âת»»µ½ SQL Server

http://support.microsoft.com/default.aspx/kb/237980/zh-cn
½« Access Êý¾Ý¿âת»»Îª SQL Server µÄ×î¼ò±ã·½·¨ÊÇʹÓÃÉýǨÏòµ¼¡£ÉýǨÏòµ¼£º
±£ÁôÊý¾Ý¿â½á¹¹£¬°üÀ¨Êý¾Ý¡¢Ë÷ÒýºÍĬÈÏÉèÖá£
×Ô¶¯½« Access ÓÐЧÐÔ¹æÔòºÍĬÈÏÉèÖÃת»»ÎªÊʵ±µÄ SQL Server µÈЧÄÚÈÝ¡£
ÔÚÉýǨºó±£³Ö±í¹ØϵºÍ²ÎÕÕÍêÕûÐÔ¡£
ÒªÔÚ Access 2000 ÖÐÔËÐÐÉýǨÏòµ¼£¬ÇëÔÚ“¹¤¾ß”²Ëµ¥ÉÏ£¬Ö¸Ïò“Êý¾Ý¿âʵÓù¤¾ß”£¬È»ºóµ¥»÷“ÉýǨÏòµ¼”¡£
ÔÚ Access 2000 ÖУ¬Ö¸Ïò“Îļþ”²Ëµ¥Éϵēн¨”£¬È»ºóµ¥»÷“´ÓÏÖÓÐÊý¾Ý¿âн¨ÏîÄ¿”¡£´ËÑ¡Ïî¿É´´½¨Ò»¸ö×Ô¶¯Êý¾Ý´¦Àí (ADP) Ó¦ÓóÌÐò¡£´ËÓ¦ÓóÌÐò»á×Ô¶¯½« SQL Server ×ÀÃæÒýÇ棨Ҳ³ÆΪ MSDE 2000£©»ò SQL Server ÓÃ×÷·þÎñÆ÷£¬²¢½« ADP ÎļþÓÃ×÷Ó¦ÓóÌÐò¡£
ÈçͼËùʾ
http://hi.csdn.net/space-1923263-do-album-picid-491587.html
http://hi.csdn.net/space-1923263-do-album-picid-491299-goto-down.html ......

java+Access( javaÊý¾Ý¿â±à³Ì£©

1£ºÏȶÔһЩ¸ÅÄîµÄÀí½â£º
JDBC£ºJava DataBase Connection
±¾¼¾Ä¿±ê
1¡¢JDBCµÄ·ÖÀà
2¡¢JDBCµÄÖ÷Òª²Ù×÷ÀàºÍ½Ó¿Ú£º
DriverManager¡¢Connection¡¢Statement¡¢PreparedStatement¡¢ResultSet
3¡¢ÈçºÎʹÓÃJDBCÁ¬½ÓMySQLÊý¾Ý¿â
www.mldn.cnÉÏÓÐMYSQLµÄ½Ì³Ì¡£
1¡¢Ê²Ã´ÊÇJDBC£¿
JDBCÊÇJAVAÌṩµÄÒ»¸ö·þÎñ£¬×¨ÃÅÓÃÓÚ·ÃÎÊÊý¾Ý¿â²Ù×÷£¬¶øÇÒ×¢Ò⣺JDBC¶¨ÒåµÄÊÇÒ»¸öÊý¾Ý¿â·ÃÎʵıê×¼£¬ËùÒÔÀïÃæ»ù±¾É϶¼ÊÇһϵÁеĽӿڡ£¸÷¸öÊý¾Ý¿â³§ÉÌÈç¹ûÒªÏëÖ§³ÖJDBC²Ù×÷£¬Ôò¿Ï¶¨ÒªÌṩһ×éÏà¹ØµÄÀ࣬ÕâЩÀà¿Ï¶¨¶¼ÊÇÌṩ½Ó¿Ú×ÓÀàʵÏÖ¡£
2¡¢JDBCµÄ·ÖÀà
·JDBC-ODBCÇÅÁ¬½Ó
·JDBCÖ±½ÓÁ¬½Ó
·JDBCÍøÂçÁ¬½Ó
3¡¢Ê²Ã´ÊÇODBC£¿
ODBCÊÇ΢Èí¹«Ë¾¶¨ÒåµÄÒ»¸ö¿ª·ÅʽÊý¾Ý¿âÁ¬½Ó£¨Open DataBase Connection£©£¬Ê¹ÓÃODBC¿ÉÒÔÁ¬½Ó¸÷ÖÖÊý¾Ý¿â£¨Ç°Ì᣺±ØÐëÔÚwindowsÖа²×°ºÃÇý¶¯²Å¿ÉÒÔ£©¡£ÔÚSUN µÄJDKÖÐĬÈÏÌṩÁË´ËÊý¾Ý¿âµÄÇý¶¯³ÌÐò£¬ËùÒÔJDK±¾Éí¿ÉÒÔÖ±½ÓʹÓÃJDBC-ODBC½øÐзÃÎÊ¡£
·ÃÎʵĹý³Ì£º
JDBC --> ODBC --> Êý¾Ý¿â £¨ÐÔÄܱȽϵͣ©
Èç¹ûÖ±½ÓʹÓÃJDBC·ÃÎÊ£¬·ÃÎʹý³Ì£ºJDBC --> Êý¾Ý¿â£¨ÐÔÄܽϸߣ©
4¡¢Ö÷Òª²Ù×÷½Ó¿Ú
· Connection£º±íʾÁ¬½ÓÊý¾Ý¿âµÄ½ ......

java+Access( javaÊý¾Ý¿â±à³Ì£©

1£ºÏȶÔһЩ¸ÅÄîµÄÀí½â£º
JDBC£ºJava DataBase Connection
±¾¼¾Ä¿±ê
1¡¢JDBCµÄ·ÖÀà
2¡¢JDBCµÄÖ÷Òª²Ù×÷ÀàºÍ½Ó¿Ú£º
DriverManager¡¢Connection¡¢Statement¡¢PreparedStatement¡¢ResultSet
3¡¢ÈçºÎʹÓÃJDBCÁ¬½ÓMySQLÊý¾Ý¿â
www.mldn.cnÉÏÓÐMYSQLµÄ½Ì³Ì¡£
1¡¢Ê²Ã´ÊÇJDBC£¿
JDBCÊÇJAVAÌṩµÄÒ»¸ö·þÎñ£¬×¨ÃÅÓÃÓÚ·ÃÎÊÊý¾Ý¿â²Ù×÷£¬¶øÇÒ×¢Ò⣺JDBC¶¨ÒåµÄÊÇÒ»¸öÊý¾Ý¿â·ÃÎʵıê×¼£¬ËùÒÔÀïÃæ»ù±¾É϶¼ÊÇһϵÁеĽӿڡ£¸÷¸öÊý¾Ý¿â³§ÉÌÈç¹ûÒªÏëÖ§³ÖJDBC²Ù×÷£¬Ôò¿Ï¶¨ÒªÌṩһ×éÏà¹ØµÄÀ࣬ÕâЩÀà¿Ï¶¨¶¼ÊÇÌṩ½Ó¿Ú×ÓÀàʵÏÖ¡£
2¡¢JDBCµÄ·ÖÀà
·JDBC-ODBCÇÅÁ¬½Ó
·JDBCÖ±½ÓÁ¬½Ó
·JDBCÍøÂçÁ¬½Ó
3¡¢Ê²Ã´ÊÇODBC£¿
ODBCÊÇ΢Èí¹«Ë¾¶¨ÒåµÄÒ»¸ö¿ª·ÅʽÊý¾Ý¿âÁ¬½Ó£¨Open DataBase Connection£©£¬Ê¹ÓÃODBC¿ÉÒÔÁ¬½Ó¸÷ÖÖÊý¾Ý¿â£¨Ç°Ì᣺±ØÐëÔÚwindowsÖа²×°ºÃÇý¶¯²Å¿ÉÒÔ£©¡£ÔÚSUN µÄJDKÖÐĬÈÏÌṩÁË´ËÊý¾Ý¿âµÄÇý¶¯³ÌÐò£¬ËùÒÔJDK±¾Éí¿ÉÒÔÖ±½ÓʹÓÃJDBC-ODBC½øÐзÃÎÊ¡£
·ÃÎʵĹý³Ì£º
JDBC --> ODBC --> Êý¾Ý¿â £¨ÐÔÄܱȽϵͣ©
Èç¹ûÖ±½ÓʹÓÃJDBC·ÃÎÊ£¬·ÃÎʹý³Ì£ºJDBC --> Êý¾Ý¿â£¨ÐÔÄܽϸߣ©
4¡¢Ö÷Òª²Ù×÷½Ó¿Ú
· Connection£º±íʾÁ¬½ÓÊý¾Ý¿âµÄ½ ......

accessÖеÄÀàÐÍת»»º¯Êý

ÿ¸öº¯Êý¶¼¿ÉÒÔ½«±í´ïʽ £¨±í´ïʽ£ºËãÊõ»òÂß¼­ÔËËã·û¡¢³£Êý¡¢º¯ÊýºÍ×Ö¶ÎÃû³Æ¡¢¿Ø¼þºÍÊôÐÔµÄÈÎÒâ×éºÏ£¬¼ÆËã½á¹ûΪµ¥¸öÖµ¡£±í´ïʽ¿ÉÖ´ÐмÆËã¡¢²Ù×÷×Ö·û»ò²âÊÔÊý¾Ý¡££©Ç¿ÖÆת»»ÎªÌض¨µÄÊý¾ÝÀàÐÍ £¨Êý¾ÝÀàÐÍ£º¾ö¶¨×ֶοÉÓµÓеÄÊý¾ÝÀàÐ͵Ä×Ö¶ÎÌØÕ÷¡£Êý¾ÝÀàÐÍ°üÀ¨ Boolean¡¢Integer¡¢Long¡¢Currency¡¢Single¡¢Double¡¢Date¡¢String ºÍ Variant£¨Ä¬ÈÏ£©¡££©¡£
Óï·¨
CBool(expression)
CByte(expression)
CCur(expression)
CDate(expression)
CDbl(expression)
CDec(expression)
CInt(expression)
CLng(expression)
CSng(expression)
CStr(expression)
CVar(expression)
±ØÑ¡µÄ expression ²ÎÊý £¨²ÎÊý£ºÎª²Ù×÷¡¢Ê¼þ¡¢·½·¨¡¢ÊôÐÔ¡¢º¯Êý»ò¹ý³ÌÌṩÐÅÏ¢µÄÖµ¡££©ÊÇÈκÎ×Ö·û´®±í´ïʽ £¨×Ö·û´®±í´ïʽ£ºÈÎÒ»ÇóֵΪһÁÐÁ¬Ðø×Ö·ûµÄ±í´ïʽ¡£±í´ïʽµÄÔªËØ¿ÉÒÔÊÇ£º·µ»Ø×Ö·û´®»ò×Ö·û´® Variant (VarType 8) µÄº¯Êý£»×Ö·û´®×ÖÃæÖµ¡¢³£Á¿¡¢±äÁ¿»ò Variant¡££©»òÊýÖµ±í´ïʽ £¨ÊýÖµ±í´ïʽ£º¼ÆËã½á¹ûΪÊý×ÖµÄÈκαí´ïʽ¡£±í´ïʽ¿ÉÒÔÊDZäÁ¿¡¢³£Êý¡¢º¯ÊýºÍÔËËã·ûµÄÈÎÒâ×éºÏ¡££©¡£
·µ»ØÀàÐÍ
º¯ÊýÃû³Æ¾ö¶¨·µ»ØÀàÐÍ£¬ÈçÏÂËùʾ£º
º¯Êý·µ»ØÀàÐÍexpression ²ÎÊýµÄ·¶Î ......

¹úÍâÖ÷»úACCESS´íÎó80004005

Microsoft JET Database Engine error '80004005'
Selected collating sequence not supported by the operating system.
ÊÇÒòΪ¹úÍâµÄÖ÷»ú²»Ö§³ÖMDBÎļþĬÈϵĺºÓïÆ´ÒôÅÅÐò·½Ê½
Ö»Òª°ÑÅÅÐò¸ÄΪ³£¹æ,ÈçÏÂͼ:
È»ºóÒÀ´Îµã»÷ ¹¤¾ß -> Êý¾Ý¿â³£Óù¤¾ß -> ѹËõºÍÐÞ¸´Êý¾Ý¿â
Ó¦¸Ã¾Í¿ÉÒÔÕý³£Ê¹ÓÃÁË.
ÉÏÎÄÀ´Ô´ÓÚ KinJAVAÈÕÖ¾ (http://jorkin.reallydo.com)
Ô­ÎĵØÖ·: http://jorkin.reallydo.com/article.asp?id=492
ÔÚÖÐÎÄOS´´½¨µÄAccessÊý¾Ý¿âÒƵ½Ó¢ÎĵÄOS½«»á³öÏÖ:“Selected collating sequence not supported by the operating system”´íÎ󣬽â¾ö·½·¨£º
½â¾ö·½·¨Ò»¡¢
1£©¡¢´ò¿ªÎÒµÄ Microsoft Access £¬Open ÈÎÒâÒ»¸öÎļþ£¬È»ºóµã"tools"£¬Ñ¡ÖÐ Options£¬ÔÙÑ¡ General Ïî¡£×¢ÒâÔÚÓÒÏ·½ÓÐ New Database Sort OrderÏÂÀ­¿ò£¬Ñ¡ÖÐ General¡£È»ºó¹Øµô¸ÃÎļþ¡££¨×¢Ò⣬OptionsÖ»ÓÐÔÚÓÐÎļþ´ò¿ªµÄ×´¿öϲÅÄÜʹÓã©
2£©¡¢È»ºó"File" --> "New..." ´´½¨Ò»¸ö¿Õ°×Êý¾ÝÎļþ£¬È»ºó"file" --> "Get External Data" -- "Import"£¬´ò¿ªÎÒµÄÀÏÊý¾Ý¿âÎļþ½«ËùÓÐµÄ tables È«²¿´«µ½ÐÂÎļþÀ´£¬È»ºó±£´æÐÂÎļþ¡£ÎÒÒª×öÕâ²½ÊÇÒòΪÎÒµÄÂÛ̳ÀïÒѾ­ÓÐÐí¶àµÄÊý¾ÝÔ ......

EXCEL´ÓACCESSÖÐÈ¡Öµ

ACCESSÊý¾Ý¿â½çÃ棺
EXCELµÄ´°Ìå½çÃ棺
´°ÌåÖеĴúÂ룺
Private Sub ComboBox1_Change()
Dim cn As Object, sql$, arr, i&
Set cn = CreateObject("adodb.connection")
cn.Open "provider=Microsoft.jet.OLEDB.4.0;data source=" & ThisWorkbook.Path & "\ºǫ́.mdb"
Me.ListBox1.Clear
sql = "select ³µ¼ä,²úÆ·,¼Û¸ñ from ²úÆ· where ³µ¼ä='" & Me.ComboBox1.Text & "'"
arr = cn.Execute(sql).getrows
Me.ListBox1.BoundColumn = 2
For i = 0 To UBound(arr, 2)
Me.ListBox1.AddItem arr(1, i) & vbTab & arr(2, i)
Next
cn.Close
Set cn = Nothing
End Sub
Private Sub UserForm_Initialize()
Dim arr
Dim cn As Object, sql$
Set cn = CreateObject("adodb.connection")
cn.Open "provider=Microsoft.jet.OLEDB.4.0;data source=" & ThisWorkbook.Path & "\ºǫ́.mdb"
sql = "select distinct ³µ¼ä from ²úÆ·"
arr = cn.Execute(sql).getrows
Me.ComboBox1.List = WorksheetFunction.Transpose(arr)
Me.ComboBox1.Valu ......
×ܼǼÊý:314; ×ÜÒ³Êý:53; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [16] [17] [18] [19] 20 [21] [22] [23] [24] [25]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ