上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 68 下一页
摘要: //上一个月的今天格式为 "2014-09-23 10:05:09"$forward_month= GetMonth($sign="-1");//得到当前月的下一个月或上一个月的今天 function GetMonth($sign="-1") { //得到系统的日 $day_now=date("d"... 阅读全文
posted @ 2014-09-23 16:05 海乐学习 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=data\myAccess_db.accdb;Persist Security Info=False;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data\jin... 阅读全文
posted @ 2014-09-22 13:30 海乐学习 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 系统环境: win7 32位 access 2010 vs2010Microsoft .ACE. OLEDB .12.0是针对于access 2007的,下载2007 Office system 驱动程序:数据连接组件安装http://download.microsoft.com/downlo... 阅读全文
posted @ 2014-09-22 13:29 海乐学习 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1. 在“创建”选项卡中,单击“其他”组中的“查询设计”。 2. 单击“显示表”对话框中的“关闭”,而不添加任何表或查询。 3. 在“设计”选项卡中,单击“查询类型”工作组中的“联合”。 4. 单击“显示/隐藏”工作组中的“属性表”以显示查询的属性表。5. 在“SQL 传递查询”窗口中,键入您的传递... 阅读全文
posted @ 2014-09-22 13:25 海乐学习 阅读(451) 评论(0) 推荐(1) 编辑
摘要: select * from 表 where datediff("d",日期型的字段,#2008-09-01#)=0或select * from 表 where 日期型的字段 >= #2008-09-01 00:00:00# and 日期型的字段 <= #2008-09-01 23:59:59#将单... 阅读全文
posted @ 2014-09-22 13:22 海乐学习 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 如果不想让DataGridView自动生成与数据源对应的列,只需要把属性AutoGenerateColumns设为false即可。需要注意: 在界面设计的属性窗口中是看不到AutoGenerateColumns属性的,需要在代码中设定,比如在窗口的构造函数中设定:dataGridView1.Auto... 阅读全文
posted @ 2014-09-20 21:58 海乐学习 阅读(7154) 评论(0) 推荐(1) 编辑
摘要: "开始"->"程序"->Microsoft SQL Server 2008->配置工具->SQL Server配置管理器->SQL Server服务:只保留SQL Server(MSSQLSERVER)(正在运行),其他的全部设为停止。重启wamp服务器成功! 阅读全文
posted @ 2014-09-18 11:04 海乐学习 阅读(1784) 评论(0) 推荐(0) 编辑
摘要: //弹出对话框-------------------------------------------------- private void openDialog(String strMsg, String strTitle){ new AlertDialog.Builder(this) .setTitle(strTitle) .setMessage(strMsg) .setPositiveButton("确认", new DialogInterface.OnCl... 阅读全文
posted @ 2014-03-06 00:37 海乐学习 阅读(2651) 评论(0) 推荐(0) 编辑
摘要: import android.net.Uri;//调用Android系统API发送短信 Uri uri = Uri.parse("smsto:" + strSmsPhone_value.toString()); //收短信的电话号码 Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body", strSmsMsg);//短信内容 startActivity(intent); AndriodManifest.xml 中加入 发短信的权限 //加上此句 阅读全文
posted @ 2014-03-06 00:36 海乐学习 阅读(255) 评论(0) 推荐(0) 编辑
摘要: import java.util.Calendar; import android.widget.DatePicker; import android.app.DatePickerDialog; //日期对话框的标记 常量 private static final int DATE_DIALOG_ID = 1; private static final int SHOW_DATAPICK = 0; //日期变量 private int mYear; private int mMonth; private int ... 阅读全文
posted @ 2014-03-06 00:35 海乐学习 阅读(882) 评论(0) 推荐(0) 编辑
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 68 下一页