我猜是因为你没有对winapi声明,把下面api的声明放到所有代码里最上方再试试'send**的声明private declare function send** lib "user32" alias "send**a" (byval hwnd as long, byval wmsg as long, byval wparam as long, lp...
在data控件的属性页里设置databasename所要链接的数据库,在recordsource设置你所连接的数据库中的一个表。如果输出到dbgrid(工具箱中无的,要添加:工程---部件--microsoft data bound control 5.0),还要设置dbgrid属性中的datasource为data1.
应该把命令写在:在text1推动焦点时,进行该命令:dim app as excel.applicationdim wbk as excel.workbookdim wsh as excel.worksheetprivate sub text1_lostfocus() set app = createobject("excel.application") set w...
我估计你是想用在b列查找匹配的短文本信息,如果找到该信息,那么将相关信息显示在指定的label上面。下面代码供你测试: private sub textbox2_keydown(byval keycode as msforms.returninteger,byval shift as integer) on error resume next dim rng as range,c as strin...