Microsoft AccessÃØÃÜ¡¢¼¼ÇɺÍÏÝÚå
ÎÄÕ¸ÅÀ¨Á˵±Ê¹ÓÃMicrosoft Access ʱ£¬Í¨¹ýʹÓÃAccess Basic¿ÉÒÔÔö¼ÓÓ¦ÓóÌÐòµÄÖ´ÐÐËٶȣ¬¼õÉÙ±àÂëÁ¿£¬Í¬Ê±Ò²¼õÉÙÔÚΪMicrosoft WindowsÓ¦ÓóÌÐò½Ó¿Ú±à³Ìʱ¡¢ÔÚ¿ª·¢Ó¦ÓóÌÐòÖÐÓöµ½µÄÎÊÌâµÄ¼¼Êõ¡£½÷É÷µØʹÓñäÁ¿ºÍËüËùÕ¼ÓõĴ洢¿Õ¼äÄÜÓÐЧµØ¼õÉÙÒ»¸öÓ¦ÓóÌÐòËùÏûºÄµÄ×ÊÔ´£¬Í¬Ê±Ò²È«ÃæÌá¸ßÁËËüµÄÐÔÄÜ¡£ ¡¡¡¡²»ÕýÈ·µØµ÷ÓÃWindowsÓ¦ÓóÌÐò½Ó¿Ú¿ÉÄÜ»á²úÉúһЩÒâÏë²»µ½µÄ¸±×÷Óã¬ÒÔ¼°Ç±ÔڵضÔÒ»¸öÓ¦ÓóÌÐòµÄ´úÂë¼°Êý¾Ý¶ÎµÄÆÆ»µ¡£ÕýÈ·µØʹÓÃÒ»¸ö¿ÕµÄ32λָÕëÔÚMicrosoft Access ÖÐÊÇÊ®·Ö±ØÒªµÄ¡£ ¡¡¡¡µ±¶Ô±í¸ñºÍ±¨±í½øÐвÙ×÷ʱ£¬Microsoft AccessÓÐÒ»¸öÎÞÕýʽÎı¾µÄÌØÐÔ¡£Õâ¸öÌØÐÔÔÊÐíÄã´ÓÉè¼ÆÊÓ´°ÐÔÖÊsheet windowÖнøÐйý³Ìµ÷Ó㬵÷Óõķ½·¨Ê±Í¬Ê±°´ÏÂshiftºÍF2¼ü¡£ ½éÉÜ ¡¡¡¡Microsoft Access BasicÌṩÁËÒ»¸ö·á¸»µÄ¿ª·¢»·¾³¡£Õâ¸ö¿ª·¢»·¾³¸øÄã×ã¹»µÄÁé»îÐԺͶÔMicrosoft WindowsÓ¦ÓóÌÐò½Ó¿ÚµÄ¿ØÖÆ£¬Í¬Ê±±£»¤ÄãʹÄãÃâÔâÓø߼¶»òµÍ¼¶ÓïÑÔ¿ª·¢»·¾³¿ª·¢Ê±ËùÅöµ½µÄ¸÷ÖÖÂé·³¡£²»¹ý£¬Ðí¶àÓÅ»¯¡¢ÓÐЧÊý¾ÝºÍÄ£¿é»¯·½ÃæÖ»ÄÜÊÇÓ¦ÓóÌÐòÉè¼ÆÕß²ÅÄÜʹÓ᣿ª·¢ÕßÓ¦ÖÂÁ¦ÓÚ½÷É÷µØʹÓÃËã·¨¡£³ýÁËÒ»°ãµÄ³ÌÐòÉè¼Æ¸ÅÄ»¹ÓÐһЩÌرðµÄ´æ´¢¿Õ¼äµÄ¹ÜÀí¼¼Êõ£¬ÕýȷʹÓÃÕâЩ¼¼Êõ¿ÉÒÔÌá¸ßÓ¦ÓóÌÐòµÄÖ´ÐÐËٶȣ¬¼õÉÙÓ¦ÓóÌÐòËùÒªºÃµÄ´æ´¢×ÊÔ´¡£ Ìá¸ßËٶȺͼõÉÙ´úÂëÁ¿ ¡¡¡¡Äã¿ÉÒÔÓü¸ÖÖ¼¼ÇÉÀ´Ìá¸ßÄãµÄ±àÂëËٶȣ¬µ«ÊÇÈ´ÕÒ²»µ½ÓÐЧµÄËã·¨µÄÌæ´úÕß¡£½ÓÏÂÀ´µÄ¼¸µã½¨Òé¿ÉÒÔÌá¸ßÄãµÄ±àÂëËÙ¶ÈͬʱÓÖ¼õÉÙÄãµÄÓ¦ÓóÌÐòÏûºÄµÄ´æ´¢¿Õ¼ä¡£ ʹÓÃÕûÐÎÊý¾ÝÀàÐͽøÐÐÊýѧÔËËã ¡¡¡¡¼´Ê¹Microsoft Access »áʹÓÃÒ»¸öÁªºÏ´¦ÀíÆ÷À´´¦Àí¸¡µãÐÍËãÊõ£¬ÕûÐÍÊýËãÊõÒ²×ÜÊÇÒª¿ìһЩ¡£µ±ÄãµÄ¼ÆËã²»º¬ÓÐСÊý£¬¾¡Á¿Ê¹ÓÃÕûÐÍ»ò³¤ÕûÐͶø²»ÊDZäÁ¿»òË«ÕûÐÍ¡£ÕûÐͳý·¨Í¬ÑùÒ²Òª±È¸¡µã³ý·¨Òª¿ì¡£ÔÚʹÓÃÆäËûһЩÓÐЧµÄÊý¾ÝÀàÐÍʱ»á¾¯¸æ£ºÃ»ÓÐÈκζ«Î÷¿ÉÒÔÌæ»»ÓÐЧµÄÔËËã·¨Ôò¡£ ±ÜÃâʹÓùý³Ìµ÷Óà ¡¡¡¡±ÜÃâÔÚÑ»·ÌåÖÐʹÓÃ×Ó³ÌÐò»òº¯Êýµ÷Óá£Ã¿Ò»´Îµ÷Óö¼Òò¶îÍâµÄ¹¤×÷ºÍʱ¼ä¶ø¸ø±àÂëÔö´óÁ˸ºµ£¡£Ã¿Ò»´Îµ÷Óö¼ÒªÇó°Ñº¯ÊýµÄ¾Ö²¿±äÁ¿ºÍ²ÎÊýѹջ£¬¶øÕ»µÄ´óСÊǹ̶¨µÄ£¬²»ÄÜËæ±ã¼Ó´ó£¬²¢ÇÒͬʱ»¹ÒªÓÚMicrosoft Access¹²ïí¡£ ½÷É÷ʹÓò»¶¨³¤Êý¾ÝÀàÐÍ ¡¡¡¡²»¶¨³¤Êý¾ÝÀàÐÍÌṩÁ˸ü´óµÄÁé»îÐÔ£¬±ÈÈç˵ÔÊÐíÕýÈ·´¦Àí¿ÕÖµºÍ×Ô¶¯´¦ÀíÒç³ö¡£ÁíÍâÕâÖÖÊý¾ÝÀàÐͱȴ«Í³µÄÊý¾ÝÀàÐÍÒª´ó²¢ÏûºÄ¸ü¶àµÄ´æ´¢¿Õ¼ä¡£Ç°Ã滹Ôø¾Ìáµ½¹ý£¬²»¶¨³¤Êý¾ÝÀàÐ͵ıäÁ¿ÔÚÊýѧ¼ÆËãÖбȽÏÂý¡£ ÓñäÁ¿´æ·Å¾³£Ê¹ÓõÄÊôÐÔ ¡¡¡¡¶Ô±äÁ¿½øÐвéÕÒºÍÉèÖö¼±È¶ÔÊôÐÔ½øÐÐÕâЩ²Ù×÷Òª¿ì¡£Èç¹ûÄãÒªµÃµ½»ò²éÔÄÒ»¸öÊôÐÔÖµÐí¶à´Î£¬ÄÇô°ÑÕâ¸öÊôÐÔ·ÖÅä¸øÒ»¸ö±äÁ¿£¬²¢ÓÃÕâ¸ö±äÁ¿À´´úÌæÊôÐÔ£¬ÄÇôÄãµÄ´úÂ뽫ҪÔËÐпìµÃ¶à¡£ÀýÈ磬ÔÚÒ»¸öÑ»·ÖУ¬Äã²éÔÄij±í¸ñÖеÃÒ»¸ö¿ØÖƵÄÊôÐÔ£¬ÄÇôÔÚÑ»·Íâ°ÑÊôÐÔ·ÖÅä¸øÒ»¸ö±äÁ¿£¬È»ºóÔÚÑ»·ÖÐÓòéѯһ¸ö±äÁ¿À´´úÌæ²éÔÄÒ»¸öÊôÐԵķ½·¨Òª±È½Ï¿ì¡£ Ô¤Ôرí¸ñ ¡¡¡¡µ±ÄãµÄÓ¦ÓóÌÐòÆô¶¯²¢ÇÒ°ÑËüÃǵĿɼûÊôÐÔÉèÖÃλ¡®false¡¯Ê±£¬Èç¹ûÄã°²×°ÁËÄãËùÓеıí¸ñ£¬ÄÇôÄãµÄÓ¦ÓóÌÐòµÄÐÔÄÜ»áÈÃÄã¸Ð¾õͦ¿ì¡£µ±ÄãÐèÒªÏÔʾһ¸ö±í¸ñʱ£¬ÄãÖ»ÐèÒª°Ñ¸Ã±í¸ñµÄ¿É¼ûÊôÐÔÉèÖÃΪ¡®true¡¯£¬ÕâÒª±È°²×°Ò»¸ö±í¸ñÒª¿ìµÃ¶à¡£ÐèÒª¼ÇסµÄÊÇ£¬ÎªÄã°²×°µÄÿ¸ö±í¸ñ£¬Ä㶼Ҫ´ÓÓ¦ÓóÌÐòµÄÈ«¾Ö¶ÑÖÐÏûºÄ´æ´¢¿Õ¼ä¡£ Access BasicÖеÄÏÝÚå ¡¡¡¡ÔÚAccess BasicÖо³£Åöµ½µÄÏÝÚåÊǶԶ¯Ì¬Á¬½Ó¿â£¨DLLS£©ÖеÄÍⲿ¹ý³ÌµÄµ÷Óᣵ±ÄãÌṩ³ÌÐò¸øÄãµÄÓû§£¬µ÷ÓÃÍⲿ¶¯Ì¬Á´½Ó¿âʱ½«³öÏÖʹÓþ¯¸æ£»·ñÔò£¬Ä㽫µÃµ½Ò»Ìõ´íÎóÐÅÏ¢£ºÊÔͼÓÃÏàͬµÄº¯Êý¶¨Òå°²×°Ä£¿é¡£ ʹÓÃΨһµÄ±ðÃû ¡¡¡¡ÔÚAccess BasicÖУ¬Èç¹ûÄãÖªµÀÈë¿Úµã£¨¶¯Ì¬Á´½Ó¿âÖк¯ÊýµÄÃû×Ö£©£¬Äã¿ÉÒÔµ÷Óö¯Ì¬Á´½Ó¿âÖеÄÍⲿº¯Êý¡£²»¹ý£¬Ê¹ÓÃÕâÒ»·½·¨µÄÏÞÖÆÐÔÔÚÓÚÄãÖ»ÄÜÉùÃ÷Íⲿº¯ÊýÒ»´Î¡£Èç¹ûÄã°²×°Á˵÷ÓÃÁËÄãµÄÄ£¿éµ÷ÓõÄÏàͬµÄWindowsÓ¦ÓóÌÐò½Ó¿Ú£¬Äã²»»áµÃµ½Ò»¸ö²»ÎªÈËËùÖªµÄ´íÎó£ºÊÔͼÓÃÏàͬµÄº¯Êý¶¨Òå°²×°Ä£¿é¡£ ¡¡¡¡Äã³¢ÊÔ°²×°µÄÄ£¿éҪôÊÇ°üº¬ÓÐÏàͬµÄº¯ÊýÃû£¬ÒªÃ´ÊÇ°üº¬ÔÚÒÑ´æÔÚµÄÄ£¿éÖÐÓеĹý³ÌÃû¡£É¾³ýÕâЩ¹ý³Ì£¬ÔÚEDIT²Ëµ¥ÖÐʹÓÃFINDÃüÁîÕÒµ½Öظ´µÄ¹ý³ÌÃû£¬Òª½â¾öÕâÒ»ÎÊÌ⣬ÄãÐèҪʹÓÃÒ»ÖÖ½Ð×ö¡°±ðÃûʹÓᰵļ¼Êõ¡£ÕâÖÖ¼¼ÊõÔÊÐíÄã¸øÄãµÄ¹ý³ÌÒ»¸ö¶ÀÒ»ÎÞ¶þµÄÃû×Ö¡£µ«ÊÇ£¬ÄãÑ¡ÔñµÄ±ðÃûÒ²ÓпÉÄܲ»ÊǶÀÒ»ÎÞ¶þµÄ£¬ËùÒÔҪʹÄãÈ¡µÄÃû×ÖΨһ£¬Äã¿ÉÒÔÓóõʼֵºÍÏ»®ÏßÓÅÏÈÉùÃ÷ÄãËùÓдӶ¯Ì¬Á´½Ó¿âÖе÷ÓõĹý³Ì£¬±ÈÈ磬ÉùÃ÷getActiveWindowΪ£º Declare bcb_GetActiveWindow Lib "Kernel" Alias "GetActiveWindow" () As Integer. ÈçºÎ´«µÝÒ»¸ö¿ÕÖ¸Õë¸ø¶¯Ì¬Á´½Ó¿â Ò»¸ö¿ÕµÄ32λָÕëÊÇÓÐЧµÄ»òÊÇΪһЩ¶¯Ì¬Á´½Ó¿âÒªÇó¾ßÓвÎÊý¡£ÒªÖ¸¶¨Ò»¸ö¿ÕÖµ£¬Ê¹ÓÃ0&¡£µ±ÄãµÄº¯Êýµ÷ÓÃÒ»¸ö¹ý³Ì²¢´«µÝÒ»¸ö±í´ïʽ0&£¬¡°&¡±Ö¸¶¨Ò»¸ö32λµÄ¿ÕÖ¸Õ룬ÔÚº¯ÊýÉùÃ÷ÖУ¬Ò»¸öAS ANY²ÎÊýָʾAccess Basic¶ÔÄǸö²ÎÊý²»½øÐÐÀàÐͼì²é£¬Í¬Ê±°ÑÖµ´«µÝµ½±»µ÷Óõĺ¯Êý¡£ ÏÂÃæµÄ±àÂëʾ·¶ÁËÒ»¸öÕýÈ·µÄ·½·¨£¬¸æËßÄãÈçºÎÉùÃ÷Ò»¸ö¸ø¶¯Ì¬Á´½Ó¿âÖеĹý³Ì´«µÝÒ»¸ö¿ÕÖ¸Õë²ÎÊýµÄAccess Basicº¯Êý¡£Õâ¶ÎÉùÃ÷ÁËWriteProfileStringÓ¦ÓóÌÐò½Ó¿Úº¯Êý¡£Õâ¸öº¯ÊýÀ´×ÔÓÚÍⲿWindows¶¯Ì¬Á´½Ó¿â¡°kernel"¡£ Declare Function WriteProfileString Lib "Kernel" (ByVal lpApplicationName ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡As Any, ByVal lpKeyName As Any, ByVal lpString As Any) ½ÓÏÂÀ´µÄº¯Êýµ÷ÓÃÁËÒ»¸öÍⲿ¹ý³Ì£¬Î»Ã¿¸ö²ÎÊýÖ¸¶¨Ò»¸ö¿ÕÖµ¡£Õ⽫ʹWriteProfileString³äÂúËüµÄÄÚ²¿¸ßËÙ»º³åÇø£¬²¢ÇÒWIN.INIµÄÈκα仯дµ½´ÅÅÌÉÏ¡£ ÖØÒªµÄ ¶ÔÕâ¸öº¯Êý²»ÕýÈ·µÄʹÓûáÒýÆðÒ»°ãÐԵı£»¤¹ÊÕÏ»òÐÞ¸ÄÄãµÄWIN.INIÎļþ¡£
Function nFlushIniCache() nFlushIniCache = WriteProfileString (0&, 0&, 0&) End Function ÈçºÎ´Ó¶¯Ì¬Á´½Ó¿âÖд«µÝºÍ½ÓÊÕÎÞ·ûºÅÕûÐÍÊý ¡¡¡¡³£³£ÓÐÕâÑùÒ»ÖÖÇé¿ö£¬Òª´ÓÍⲿ¶¯Ì¬Á´½Ó¿âµ÷ÓõĹý³ÌÖзµ»ØÒ»¸öÁ½¸ö×Ö½Ú³¤µÄÎÞ·ûºÅÕûÐÍÊý¡£È»¶øAccess Basic²»Ö§³ÖÕâÖÖÊý¾ÝÀàÐÍ¡£ÕýÈ·µØ¼ÆËãÕâÖÖÊý¾ÝÀàÐÍÐèÒª°ÑËü´ÓÒ»¸öÎÞ·ûºÅÕûÐÍÊýת»»³ÌAccess Basic³¤Êý¾ÝÀàÐÍ¡£ ¡¡¡¡Access BasicÕûÐÍÊýµÄ·¶Î§Ê¹´Ó-32768µ½32767¡£Ò»¸öÎÞ·ûºÅÕûÐÍÊýµÄ·¶Î§ÊÇ´Ó0µ½65535¡£Access BasicÓÃ×îÃ÷ÏÔµÄһλÀ´·ÅÖÃÊýÖµµÄ·ûºÅ룬ËùÒÔµ±ÊýÖµ³¬¹ý32767£¬µÚ16뽫±»ÖóɸºÊý·ûºÅ¡£Òª¼ÆËãÒ»¸öÎÞ·ûºÅÕûÐÍÊý£¬Äã±ØÐëÈ˹¤µ÷ÕûµÚ16λ¡£ ¡¡¡¡´ÓÎÞ·ûºÅÕûÐÍÊýת»»µ½Access Basic³¤ÕûÐÍÊý»ò´ÓAccess BasicµÄ³¤ÕûÐÍת»»³ÉÎÞ·ûºÅÕûÐÍÊýÓÐÁ½ÖÖ·½·¨¡£µÚÒ»ÖÖ·½·¨Óõ½ÁË×î»ù±¾µÄÊýѧÔËË㣨65535±»ÎÞ·ûºÅÕûÐÍÖµ¼Ó»ò¼õ£©¡£µÚ¶þÖÖ·½·¨Ê¹ÓÃBitwise²Ù×÷¡£Êµ¼ÊÉÏ£¬ËãÊõ·½·¨ºÍBitwise·½·¨¹¤×÷ÆðÀ´Ð§¹ûÒ»Ñù£¬Ö»²»¹ý£¬ËãÊõ·½·¨¿ÉÄܿɶÁÐÔ¸üǿһЩ£¬¶øBitwise·½·¨ÔÚÖ´ÐÐʱ¿ÉÄܸü¿ìһЩ¡£ ËãÊõ·½·¨ ¡¡¡¡ÏÂÃæµÄlArithUintToInt (nUint)ºÍlArithIntToUnint(lBytes)¹ý³Ìʾ·¶ÁËÈçºÎʹÓÃת»»ÎÞ·ûºÅÕûÐÍÊýµÄËãÊõ·½·¨¡£µÚÒ»¸öº¯Êý¶Á½øÒ»¸öÎÞ·ûºÅÕûÐÍÊýͬʱ·µ»ØÒ»¸öÒѾת±ä볤ÕûÐ͵ÄÖµ¡£µÚ¶þ¸öº¯Êý¶ÁÈëÒ»¸ö³¤ÕûÐÍÖµ£¬È»ºó·µ»ØÒ»¸öת±ä³ÉÎÞ·ûºÅÕûÐ͵ÄÖµ¡£ Function lArithUintToInt (nUint As Integer) If nUint < 0 Then ¡¡¡¡ lArithUintToInt = nUint + 65536 Else ¡¡¡¡ lArithUintToInt = nUint End If End Function Function nArithIntToUnint (lBytes As Long)
If lBytes > 32767 Then ¡¡¡¡ nArithIntToUnint = lBytes - 65536 Else ¡¡¡¡ nArithIntToUnint = lBytes End If End Function °´Î»²Ù×÷·½·¨ ¡¡¡¡ÏÂÃæµÄnBWUintToInt(lBytes) ºÍ lBWIntToUint(nUint)¹ý³Ìʾ·¶ÁËÈçºÎʹÓÃBitwise·½·¨×ª»»ÎÞ·ûºÅÕûÐÍÊý¡£µÚÒ»¸öº¯Êý¶Á½øÒ»¸öÎÞ·ûºÅÕûÐÍÊý£¬È»ºó·µ»ØÒ»¸öÒѾת»»³É³¤ÕûÐ͵ÄÖµ¡£µÚ¶þ¸öº¯Êý¶ÁÈëÒ»¸ö³¤ÕûÐÍÖµ£¬È»ºó·µ»ØÒ»¸öÒѾת»»µÄÎÞ·ûºÅÕûÐÍÖµ¡£µÚ¶þ¸öº¯ÊýÖÐʹÓÃÁËÌáʾ¿òµÄÓï¾äÊÇΪÁË·ÀÖ¹µ±´«µÝµ½º¯ÊýµÄÖµ´óÓÚ64KBʱ»á³öÏÖÒç³öÐÅÏ¢¡£ ¡¡¡¡¡¡¡¡1010001111100000 (-23584) ¡¡¡¡ AND 1111111111111111 (FFFF&) ¡¡¡¡¡¡¡¡ ---------------- ¡¡¡¡¡¡¡¡ 1010001111100000 (41952) ¡¡¡¡¡¡¡¡ The functions follow: Function lBWIntToUint(nUint As Integer) lBWIntToUint = nUint And &HFFFF;& End Function Function nBWUintToInt(lBytes As Long)
Dim nTemp As Integer If lBytes > 65535 Then ¡¡¡¡ MsgBox "You passed a value larger than 65535" ¡¡¡¡ Exit Function End If nTemp = lBytes And &H7FFF;
nBWUintToInt = nTemp Or -(lBytes And &H8000;) End Function ×¢Ò⣺&HFFFF;&ÒªÇó¡°&¡±ÔÚ16½øÖÆÊýµÄĩβ¡£ÕâÑùÄܱ£Ö¤32λµÄ16½øÖÆÊýͨ¹ý16λµÄÖµ±íʾ³öÀ´¡£
Access BasicÖеļ¼ÇÉ ¡¡¡¡ÔÚMicrosoft Access ÖÐÓÐһЩÒÔÇ°ÎÞÕýʽÎı¾µÄÌØÐÔ£¬ËüÃÇÔÊÐíÄãÖ¸¶¨¹ý³Ì£¬Õâ¸ö¹ý³ÌÊÇ´ÓÒ»¸öfrom»òreportµÄÊôÐÔ¹¤×÷±í´°Öе÷Óõġ£Òª½øÈë×îС´°¿Ú£¬Ö»ÐèҪͬʱ°´ÏÂSHIFTºÍF2¼ü¡£
BUILDER FORMº¯Êý ¡¡¡¡Èç¹ûÔÚÒ»¸öÄ£¿éÖÐÒ»¸öº¯ÊýµÄ¶¨ÒåÊÇÒÔ¡°Builderr Form"¿ªÊ¼Í¬Ê±°üº¬Ò»¸öÀàËÆÓÚOncloseÊôÐÔ»òʼþ±êʶ·û£¬°´ÏÂSHIFTºÍF2¼ü¾Í¿ÉÒÔµ÷ÓÃÕâ¸ö¹ý³Ì¡£ÀýÈ磬µ±ÄãÔÚÒ»¸öformµÄÉè¼Æ´°¿ÚÖУ¬¶øµ±Ç°µÄ¹â±êÂäÔÚÊôÐÔ´°¿ÚÖеÄOncloseʼþµÄ±à¼¿ØÖÆÉÏ£¬°´ÏÂSHIFTºÍF2¼ü½«Äܵ÷ÓÃBuilderFormOncloseº¯Êý¡£ÕâʹÓÃÓÚformºÍreportsµÄ´ó²¿·ÖÊôÐÔºÍËùÓÐʼþ¡£ÏÂÃæµÄ´úÂ뽫˵Ã÷º¯ÊýµÄ¸ñʽ£º Function BuilderFormOnClose (szFormName As String, szControlName As String, ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ szCurrentValue As String, szReserved As String) If szCurrentValue = "" Then
¡¡¡¡¡¡¡¡DoCmd SelectObject A_MACRO, "", True ¡¡¡¡¡¡¡¡SendKeys "%n%fs" & "New Macro" & "{Enter}" ¡¡¡¡¡¡¡¡Forms(szFormName).OnClose = "New Macro" Else ¡¡¡¡ DoCmd SelectObject A_MACRO, szCurrentValue, True ¡¡¡¡ SendKeys "%d" End If ¡¡¡¡ End Function ²ÎÊýszFormName, szControlName, szCurrentValue, ºÍ szReserved±ØÐëÉùÃ÷£¬¼´Ê¹Äã´Ó²»Ê¹ÓÃËüÃÇ¡£µ±ÄãµÄº¯Êý±»µ÷ÓÃʱ£¬ÕâЩ²ÎÊý×ÜÊÇÒª±»´«µÝµÄ¡£Èç¹ûËüÃÇûÓб»ÉùÃ÷£¬ÄÇôMicrosoft Access½«²»»áµ÷ÓÃÄãµÄº¯Êý¡£Èç¹ûÓÐÒ»¸ö²ÎÊý±»·ÖÅäµ½OncloseʼþÉÏ£¬ÄÇôǰÃæµÄ¹ý³Ì½«´ò¿ªÒ»¸öºê£¬Èç¹û±à¼¿ØÖÆÊÇ¿Õ£¬ÄÇô´úÂë²úÉúÒ»¸öÃûΪ¡°New Macro¡±µÄк꣬ͬʱ°Ñ±à¼¿ØÖÆÖµÉèÖÃΪ¡°New Macro¡±¡£³ÏÈ»£¬Ç°ÃæµÄÀý×Ó²¢²»ÊǷdz£ÍêÃÀ£¬µ«ËüµÄȷ˵Ã÷ÁËÒª²úÉúÒ»¸öÍêÃÀ¶øÓÐЧµÄ³ÌÐòËù±ØÐëµÄÌõ¼þ
--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ
´óÐÍÊý¾Ý¿âÉè¼ÆÔÔò 2003-12-15 12:49:18
dz̸Êý¾Ý¿âÉè¼ÆÖеķ´¹æ·¶ 2003-12-15 12:47:05
ROSE¼¼Êõ°×ƤÊé 2003-12-15 12:34:14
È¡µÃµçÄÔCPUµÄÃû³Æ¼°ËÙ¶È 2003-10-29 19:11:14
±í´ïʽÉú³ÉÆ÷Öеļ¸ÖÖ³£Ó÷ûºÅ 2003-10-17 19:55:56
´´½¨ÍêÃÀ±¨±í 2003-10-17 19:37:17
´æ´¢¹ý³ÌÈëÃÅ 2003-10-17 19:06:48
VBAÖгõʼ»¯ADOÁ¬½ÓµÄ¼¸ÖÖ·½·¨ 2003-10-14 8:46:43
½« Microsoft Access ÓÃ×÷ Automation ·þÎñÆ÷ 2003-10-14 8:37:19
³ÌÐò´ò¿ªËٶȻºÂý 2003-10-14 8:29:22
Æô¶¯¿ØÖÆÃæ°åÃüÁî´óÈ« 2003-10-10 10:21:08
ÌáÉýÇ°ºǫ́ģʽ³ÌÐòµÄËÙ¶È 2003-10-10 10:17:08
Êý¾Ý¿âÓ¦ÓóÌÐòÐè×¢ÒâµÄÎÊÌâ 2003-10-6 11:11:06
ÓÅ»¯Microsoft AccessÌá¸ßËÙ¶È 2003-10-6 10:31:55
|