ÓÉÓÚ×éºÏ¿òµÄÐÐÀ´Ô´Êý¾ÝºÜ¶à,ËùÒÔÎÒдÁËÒÔÏ´úÂë:
Private Sub F_NAME_Change()
Me.F_NAME_±êÇ©.SetFocus
Me.F_NAME.Requery
Me.F_NAME.SetFocus
If Nz(F_NAME) <> "" Then Me.F_NAME.SelStart = Len(Me.F_NAME)
Me.F_NAME.Dropdown
End Sub
µ« ......
Ò³ÃæÓÐ5¸ödropdownlist£¨ddl1,ddl2,ddl3,ddl4,ddl5£©Ò»¸öTextBox (txt1)
ËûÃÇ¿ÉÒÔÈÎÒâ×éºÏÈ¥²éѯÊý¾Ý¿â
Èç¹ûÆäÖеÄĪһ¸öΪ¿ØÖÆÔò²»²ÎÓë²éѯÌõ¼þÖУ¬
Äܸø¸ö´úÂë×îºÃ£¬¸ø¸ö˼·Ҳ·Ç³£µÄ¸Ðл£¡
string sql=" select * from table where 1=1"
if(ddl1.selectValue!=""){
sql+=" and ......
´úÂëÈçÏÂ
<%
DelTemp=request.form("n")
db = "ͨѶ¼.accdb"
set conn = Server.CreateObject("ADODB.Connection")
connstr = "Provider=Microsoft.Ace.OleDb.12.0;Data Source="&Server.MapPath(db)
conn.open connstr
strSQL="delete from ......
Ö÷´°Ìå×ֶΣº ·ÖÀà
×Ó´°Ìå×ֶΣº½ð¶î
Ô¤ÆÚЧ¹û£ºµ±¡¾·ÖÀà¡¿=ÍË»õʱ£¬¡¾½ð¶î¡¿=¸ºÖµ£»
ʵÏÖ¹ý³Ì£ºµ±¡¾½ð¶î¡¿»ñµÃ½¹µãʱ£¬ÏÈÅжϡ¾·ÖÀà¡¿µÄÖµÊÇ·ñΪ¡°ÍË»õ¡±£¬ÈôÊǵĻ°£¬Ôò½ð¶îΪ¸ºÖµ¡£
ÎÊÌ⣺ÈçºÎÔÚ×Ó´²ÌåÀïµÃµ½Ö÷´°ÌåµÄÖµ£¿
£¨ÔÚÖ÷´°ÌåÀïµ÷ÓÃ×Ó´°ÌåµÄÖµ¿ÉÒÔʵÏÖ£¬·´¹ýÀ´±¾È˾Ͳ»»áÀ²£¬Çë¸÷λ´óÏÀÖ¸½Ì£¡£©
& ......
´úÂëÕâôдµÄ
string sqlCmd = "SELECT * INTO [;Data Source=D:\\2010-05-20.mdb,pwd=].main from RptMain WHERE RptCode in " + queryrms;
int i = rmdc.ExecuteCommand(sqlCmd);
È»ºóÌáʾ´íÎó
Ö¸¶¨µÄ¼Ü¹¹Ãû³Æ "Data Source=D:\2010-05-20.mdb,pwd=" ²»´æÔÚ£¬»òÕßÄúûÓÐʹÓøÃÃû³ÆµÄȨÏÞ¡£
°ÑË ......
create view ±íÃû
as
select a.a1,b.b1 from a inner join b on a.id=b.id
Õâ¸öÓï·¨ÔõôдÉÏÈ¥ÊÇ´íµÄÔÚAccessÀï
ACCESSºÃÏñ²»Ö§³Öcreate view
Äã¿ÉÒÔÔÚACCESSÖе¥»÷¡°ÊÓͼ¡±²Ëµ¥£¬Ñ¡Ôñ¡°SQLÊÓͼ¡±ÃüÁÕâÑùÔÚÆÁÄ»ÉϾͳöÏÖÁËÒ»¸öÎı¾¿ò£¬ÌîÈë:
select a.a1,b.b1 from a inner join b on a.id=b.id,°ÑËü±£´æÆðÀ ......
×ܼǼÊý:990; ×ÜÒ³Êý:165; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] 4
[5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ