资源描述:
《vb创建access数据库全解(vb creates access database full solution)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、VB创建ACCESS数据库全解(VBcreatesACCESSdatabasefullsolution)Thisarticleiscontributedbyachm207VBACCESSdatabasetocreatesolutionstocreatethedatabase,dynamicallycreatetable,createarecord,ADOADOX2010-01-2213:28Abstract:ThispaperdescribestheVBprogramusingADOdynamicmethodtocreatedataba
2、seanddatatable,thesemethodshavepracticalvalueindevelopingVBdatabaseapplication,itcanimprovetheflexibilityofdatabaseprogram.Keywords:database,datatable,ADO,ADOXThe1:questionisproposedInVisualBasic,dataaccessinterfacecommonlyusedarethefollowingthree:databaseaccessobject(DA
3、OData,AccessObject),theremotedatabaseobjects(RDO,RemoteDataObject)andActiveX(ADO,ActiveX,DatadataobjectObject).Databaseaccesstechnologyhasbeenimproving,andeachofthesethreeinterfacesrepresentsthedifferentstagesofthedevelopmentofthetechnology.ThelatestisADO,asimpler,morefl
4、exibleobjectmodelthanRDOandDAO.Becauseofthis,moreandmorepeopleuseADOasthedataaccessinterfacewhendevelopingdatabasesoftwarewithVB.Inthedevelopmentprocess,weusuallyusethemethodistousethedatabasemanagementsystem(e.g.MicrosoftAccess)orVisDatainVBtoestablishadatabaseanddatata
5、blestructure,andthenthroughtheuseofADODCdatabasecontrolorreferencetotheADOobjecttoestablishaconnectionwiththedatabasetableintheprogram,andthenthroughthedatabasecontrols(e.g.,textboxes,DataGridetc.)tocarryoutvariousoperationsofthedatabase.Inthisdevelopmentprocess,wesometi
6、meshavetofacethequestionofhowtoallowuserstodynamicallybuildtheirowndatabasesanddatatablesinordertoimprovetheflexibilityoftheprogramIntheprocessofrunningtheestablishmentoftheirownrequireddatabaseanddatatable,itsessenceistousecode(orthroughprogramming)tobuilddatabasesandda
7、tatables.Asyouallknow,thisisaneasyeventinFoxproorASPprogramming.So,intheVBdatabaseprogramming,andhowtooperateit?TheVBdatabaseprogramming,ifyouuseDAOasdatabaseaccessinterfacetechnology,canbeachievedbyCreateDatabasecombinedwithCreateTableDefmethod,therearemanybooksandmagaz
8、inesaboutthisway,thisisnolongerabout;butifyouareusingthelatesttechnologyofADOdatabaseaccessinterface,yo