วันจันทร์ที่ 26 สิงหาคม พ.ศ. 2556

access97 The command line you used to start Microsoft Access contains an option that Microsoft Access doesn't recognize. Exit and restart Microsoft Access using valid

เวลาใช้ access 97 ผ่าน network

The command line you used to start Microsoft Access contains an option that Microsoft Access doesn't recognize. Exit and restart Microsoft Access using valid 


ต้องแก้ที่ shout cut
Target
"C:\Program Files (x86)\Microsoft Office\Office\Samples\Northwind.mdb"

start in
"C:\Program Files (x86)\Microsoft Office\Office"

วันอังคารที่ 16 กรกฎาคม พ.ศ. 2556

ดู verion window

1- Using the command "winver"

1- Connect to your Windows server remotely (Remote Desktop)
2- Open a Microsoft MS-DOS command prompt shell window "cmd"
3- Type the following command
winver
4- Press the "Enter" bouton to execute the command

Using the command "systeminfo"

1- Connect to your Windows server remotely (Remote Desktop)
2- Open a Microsoft MS-DOS command prompt shell window "cmd"
3- Type the following command
systeminfo | findstr OS
4- Press the "Enter" bouton to execute the command

วันพฤหัสบดีที่ 28 กุมภาพันธ์ พ.ศ. 2556

วิธีเขียนภาษาไทยใน pdf adobe reader


 เปลี่ยน font ไทยพิมพ์ดันเป็นภาษาต่างดาว 
 ทำไงล่ะ ในที่สุดก็ค้นพบวิธี
ขั้นแรก  : ไปที่ Edit –> Preference (ด้านล่างสุด)
ขั้นสอง :  ที่แถบด้านซ้ายเลือก general
ขั้นสาม :  เลือกที่ use single key accelerators
ขั้นสุดท้าย :  ลากแถบดำที่ข้อความใน  textbox แล้วกด ctrl + e จะมีกรอบ properties tool bar ขึ้นมาเปลี่ยนขนาด font ตามใจชอบจ้า

วันจันทร์ที่ 25 กุมภาพันธ์ พ.ศ. 2556

net use เข้า network เครื่องอื่น connection ค้าง

@echo off
taskkill /f /im explorer.exe
net use * /delete /yes
explorer.exe




save เป็น .bat

วันพฤหัสบดีที่ 22 พฤศจิกายน พ.ศ. 2555

excel double click เปิดไม่ได้

http://davidchuprogramming.blogspot.com/2012/09/open-excel-file-by-double-click.html
http://www.onlinecomputertips.com/office/dde.html

วันพฤหัสบดีที่ 21 มิถุนายน พ.ศ. 2555

Enable or Disable UAC From the Windows 7 / Vista Command Line


Enable or Disable UAC From the Windows 7 / Vista Command Line

If you’ve used Windows Vista for more than 3.7 minutes, you know what UAC (User Account Control) is.. it’s the obnoxious, nagging popup window that will be your life for the next 3-5 years unless you switch back to XP in frustration, or to a better OS like… OS X, Suse, Ubuntu, or even XP.
Update: This should also work on Windows 7.
Note: Disabling UAC will lead to a less secure system, so be warned.
Windows needs your permission to annoy the crap out of you:
uac3.png
There’s a quick way you can enable or disable this annoying window from the command line:
Disable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
Enable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
After you enable or disable UAC, you will have to reboot your computer for the changes to take effect.

วันพุธที่ 6 มิถุนายน พ.ศ. 2555

User Account Control เวลาเปิด access97

วิธีการปิด UAC (User Account Control) บน windows 7
def-thumb_100
ถ้าคุณใช้ Windows 7 คุณเคยรำคาญกับการที่เวลาเราจะ Run Program, ลงโปรแกรม หรือเราจะทำงานในโปรแกรมบางอย่าง มันจะชอบมี Pop up ขึ้นมาถามตลอดเลยว่าคุณจะดำเนินการต่อไปหรือเปล่า ซึ่งฟังก์ชั่นตัวนั้นเราเรียกว่า Functions UAC (User Account Control) ครับ แต่วันนี้เราจะมาปิดมันกันเถอะ


1. Start > control panel
2. จากนั้นเราให้กด User Accounts and Family Safety
UAC_windows7_1
3. กดเมนู User Account
UAC_windows7_2


4. ให้เราเลือก Change user Account Control setting
UAC_windows7_3
5. ให้เราปรับ ลงมาให้ต่ำที่สุดครับ จากนั้นก็กด Ok แล้ว Restartคอมพิวเตอร์ 1ครั้งครับ
UAC_windows7_4


เท่านี้ก็เป็นการปิด UAC แล้วครับ ง่ายๆ จะได้ไม่ต้องมีอะไรมากวนใจ เราต่อไป

วันอาทิตย์ที่ 20 พฤษภาคม พ.ศ. 2555

วิธี Disable automatic login ใน Windows XP


วิธี Disable automatic login ใน Windows XP


ให้ล็อกอินโดยใช้ User ที่เป็น Administrator แล้ว
ไปที่ START RUN
แล้วพิมพ์คำว่า regedit จากนั้นกดตกลง
ไปที่ตำแหน่ง
HKEY_LOCAL_MACHINE
SOFTWARE
MICROSOFT
WINDOWS NT
CURRENTVERSION
WINLOGON
แล้วไปเปลี่ยนค่า AUTOADMINLOGON จาก 1 ให้เป็น 0 (ศูนย์)แล้วก็ลบค่าของตัวแปร DEFAULTPASSWORD ออก

วันพุธที่ 2 พฤษภาคม พ.ศ. 2555

อาการ ms97 เป็นที่ win7 แล้ว เปิดบ้าง form ไม่ได้


How to open MS-ACCESS97 in Windows7

1. Open File Location ของ MS-ACCESS97 คลิกขวา ที่ icon
2. เลือก Properties แล้วเลือก Compaitibilities
3. เลือก windows Service ให้ตรงกับ version ของ Windows
ดังนี้

วันพฤหัสบดีที่ 15 มีนาคม พ.ศ. 2555

My Documents รันเองตอนเปิดเครื่อง


My Documents รันเองตอนเปิดเครื่อง


1. Start > Run > พิมพ์ Regedit > กด OK
2. ไปที่คีย์ HKEY_ LOCAL_ MACHINE
\SOFTWARE
\Microsoft
\WindowsNT
\CurrentVersion
\Winlogon
3. ดูทางด้านขวามือ ไล่ลงมาจนถึงค่า Userinit ซึ่งค่าที่ถูกด้องจะต้องเป็นดังนี้
C:\WINDOWS\system32\userinit.exe, (สังเกตว่าต้องมีเครื่องหมาย comma ปิดท้ายด้วย)
4. ถ้าค่าในเครื่องของท่านต่างจากนี้ ก็คลิ๊กขวา ตรง Userinit เลือก Modify
แล้วพิมพ์ค่าที่ถูกต้องลงไปในช่อง แล้วก็กด OK
5. ปิดหน้าต่าง Registry Editor ดังกล่าว แล้ว Restart เครื่องคอมพ์ของท่าน

วันอาทิตย์ที่ 29 มกราคม พ.ศ. 2555

win7 เข้า logno ไม่ได้


Since your Windows 7 computer is not a domain member, when you accessing resources on the server, it should prompt for username and password, Please be assure that you enter a valid domain username and password. The format should be:
Domainname/username
Password
Then, the credential will be saved. The next time when you access the resources, you need to pass the NTLM authentication. However the default levels of NTLM authentication in Windows Server 2003 and in Windows 7 are different. Than may be the root cause.
1. Open gpedit.msc from Start Search box. Then locate to the following policy.
2. Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Network security: LAN Manager authentication level
3. Please change “Send LM & NTLM - use NTLMv2 session security if negotiated”.

วันพุธที่ 4 มกราคม พ.ศ. 2555

Multiple connections to a server or shared resource by the same user’



 
Start > Run and typed net use.
I had a mapping showing there, but it wasn’t assigned a drive letter. I had to delete the resource using the
command net use /delete \\servername\foldername



วันจันทร์ที่ 21 พฤศจิกายน พ.ศ. 2554

Error message Couldn't find installable ISAM

วิธีการแก้ไขมี 2 วิธี ดังนี้
วิธีที่ 1 ทำการ Remove แล้วลง MS Office 97 ใหม่
1.1 Back up ข้อมูลทั้งหมดจากฐานข้อมูล MS Access ทุกฐานข้อมูลไว้ใน Folder อื่น นอกเหนือจาก MS Office 97
1.2 ไปที่ Start --> Control Panel -->Add/Remove Program แล้วเลือก Ms Office 97 แล้วทำการ Remove ออก
1.3 ค้นหา File ที่ชื่อว่า "Mstext35.dll" ใน C:\windows\system หรือ Sysytem32 (แล้วแต่ท่านใช้ Windows รุ่นใด) เสร็จแล้วเปลี่ยนชื่อ File ดังกล่าวเป็น "Mstext35.old"
1.4 Install โปรแกรม Ms Office Access97 แบบสมบูรณ์อีกครั้งแล้วลองเปิดโปรแกรมฐานข้อมูลสถานีอนามัยแล้วลองส่งออกข้อมูล (18 แฟ้ม) อีกครั้งว่ายังขึ้นอยู่หรือไม่

วิธีที่ 2 ใช้วิธีการ Update Registry
2.1 หาไฟล์ชื่อ Mstext35.dll (จากเครื่องอื่นที่ใช้ Hcis แล้วไม่พบปัญหานี้หาใน C:\windows\system32) เมื่อพบแล้วให้ทำการ Copy มาวางไว้ที่เครื่องใน C:\windows\system32
2.2 คลิ๊กที่ Start แล้วไปที่ RUN
2.3 เมื่อ Dialog RUN ปรากฎขึ้น จะปรากฎช่องรายการ Open ในช่องรายการดังกล่าวนี้ ให้พิมพ์คำสั่งตามข้อความนี้
regsvr32 C:\windows\system32\Mstext35.dll แล้ว OK จากนั้น Windows จะเริ่มกระบวนการ Update Registry
2.4 รอสักครู่ เมื่อกระบวนการ Update Registry เสร็จเรียบร้อยดี(คือไม่มีปัญหาใดๆ) คุณน่าจะใช้งาน HCIS โดยไม่มีปัญหา

Technical Information: *** STOP: 0x0000007B (0xBACC3524,0xC0000034,0x00000000,0x00000000)

แก้ไข CMOS set HD แบบ IDE

วันอังคารที่ 6 กันยายน พ.ศ. 2554

แก้ไขใช้ access97 กับ win7

http://www.kkph.go.th/forum_tho/data/download.php

วันเสาร์ที่ 27 สิงหาคม พ.ศ. 2554

Disable the Open File Security Warning dialog box

You are referring to the Open File Security Warning dialog box. While you can uncheck the box for the popup, that only affects that file. If you download another file, you'll get the popup again, even if it is the same file as before. However, there is a way to turn it off for new downloads (all old downloads will still pop up with the warning unless the aforementioned box is unchecked). There are two methods for disabling the popup message. Registry Option: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Security] "DisableSecuritySettingsCheck"=dword:00000001 HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesAttachments Set SaveZoneInformation to 1. NOTE: 0 = Not Configured 1 = Enabled 2 = Disabled You can also set this via Group Policy at the User Configuration > Administrative Templates > Windows Components > Attachment Manager node. Enable the "Do not preserve zone information in file attachments" setting. Disable the Open File Security Warning dialog box
 ในระบบปฏิบัติการ Windows นับตั้งแต่ Windows XP จะมีระบบความปลอดภัยที่ใช้ตรวจสอบการเรียกใช้งานไฟล์หรือโปรแกรมต่างๆ ของผู้ใช้ เพื่อเตือนให้ผู้ใช้งานทราบและทำการยืนยันว่าจะเปิดไฟล์หรือโปรแกรมที่ Windows ไม่รู้จักนี้หรือไม่ (ดังรูป) ซึ่งตรงนี้แม้ว่าจะเป็นระบบความปลอดภัยที่ดี แต่ก็อาจจะสร้างความรำคาญหรือความไม่สะดวกให้กับการเปิดใช้โปรแกรมที่คุณ อาจจะต้องเปิดใช้งานบ่อยๆ ในบทความนี้ผมจะแนะนำวิธีการกำจัดหน้าจอแจ้งเตือน Security Warning ของ Windows เพื่อให้การเปิดใช้งานโปรแกรมทำได้สะดวกยิ่งขึ้น
 1. จากรูปที่แจ้งเตือนขึ้นมานี้ ให้คุณจำชื่อโฟลเดอร์หรือไอพีแอดเดรสที่ปรากฏตรงบรรทัด From เอาไว้ก่อนครับ
 2. จากนั้นเปิดโปรแกรม Internet Explorer (หรือ IE) ขึ้นมา คลิกเข้าไปที่เมนู Tools เลือกที่ Internet Options
 3. คลิกที่แท็บ Security และคลิกที่คำว่า Local intranet และ Sites ตามลำดับ
 4. ถ้ามีหน้าต่าง Local Intranet แสดงขึ้นมาดังรูป ให้คลิกที่ปุ่ม Advanced (บางท่านอาจจะไม่มีหน้าจอนี้แสดงขึ้นมา ก็ให้ทำในข้อถัดไปได้เลยครับ)
 5. ให้คุณป้อนชื่อโฟลเดอร์หรือเลขไอพีแอดเดรสที่คุณจดไว้ตามข้อ 1. เข้าไปในบรรทัด Add this website to the zone: ดังรูป และคลิกที่ปุ่ม Add ด้านหลัง ซึ่ง Windows จะแปลงค่าไดร์ฟหรือโฟลเดอร์ที่เราป้อนเข้าไปเป็นชื่อคอมพิวเตอร์ให้โดย อัตโนมัติ
 6. เรียบร้อยแล้วให้คลิกปุ่ม Close และปุ่ม OK เพื่อปิดหน้าจอ Internet Options ไป
 7. ทดสอบเรียกเข้าโปรแกรมอีกครั้งหนึ่ง ก็จะไม่ปรากฏหน้าจอเตือน Security Warning ขึ้นมากวนใจอีกครับ


 วิธีที่ 2 แต่หากแก้ไขตามขั้นตอนข้างต้นแล้ว หน้าจอ Security Warning ยังคงปรากฏขึ้นมาอีก ให้ปฏิบัติดังนี้ครับ 
1. คลิกปุ่ม Start เลือกคำสั่ง Run และพิมพ์คำสั่ง GPEDIT.MSC จากนั้นกดปุ่ม <Enter จะปรากฏหน้าจอ Local Group Policy Editor ขึ้นมาดังรูป
 2. ให้คลิกเข้าที่ Local Computer Policy - User Configuration - Administrative Templates ตามลำดับ จากนั้นดับเบิ้ลคลิกที่คำว่า Windows Components ในหน้าต่างด้านขวา
 3. ดับเบิ้ลคลิกที่ Attachment Manager ดังรูป
 4. ดับเบิ้ลคลิกที่ Inclusion list for low file types จะมีหน้าต่างแสดงขึ้นมาให้เรากำหนดค่านามสกุลของไฟล์ที่จะให้ระบบปฏิบัติการ Windows ถือว่าเป็นไฟล์ที่มีความเสี่ยงน้อย ไม่ต้องแจ้งเตือนขึ้นมาเวลาเรียกใช้งาน ในเราป้อนคำว่า *.exe เข้าไปที่ช่อง Specify low risk extension แต่ถ้าภายในช่องดังกล่าวมีค่าใดๆ กำหนดไว้แล้ว ให้เพิ่มเครื่องหมาย ;*.exe เข้าไปดังรูป
 5. เมื่อเรียบร้อยแล้วให้คลิกปุ่ม OK ปิดหน้าจอนี้ไป และปิดหน้าจอ Local Group Policy Editor ไปด้วย แล้วจึงทดลองเรียกเข้าโปรแกรมอีกครั้งหนึ่ง

วันจันทร์ที่ 20 มิถุนายน พ.ศ. 2554

วิธี set กระดาษ 9x5.5 เครื่องพิมพ์ EPSON

START>SETTING >PRINTER>เลือกเครื่องพิมพ์

FILE> Print Server Properties >forms >paper size >create a new form >save form

แล้วตั้งค่าเครื่องพิมพ์ที่โปรแกรมจะพิมพ์ เช่น access

วันอาทิตย์ที่ 12 มิถุนายน พ.ศ. 2554

มีวิธีกู้ข้อมูลไฟล์เอกสารถ้าเผลอ save ทับไปแล้ว

นึกวิธีถึกออกทางหนึ่งที่เคยใช้คือ เปิดเข้าไปอ่าน Temp file ใน Temp folder ของระบบครับ
เพื่อหาว่าเป็นไฟล์ไหน แล้ว save กลับครับ... แต่ถึกจริงๆนะ เพราะต้องไล่เปิด file ทีละอัน
ด้วยโปรแกรมพวก notepad ก็ได้ครับ

ข้อระวังคือเวลาเปิดแล้ว มันจะอ่านไม่รู้เรื่อง ต้องอ่านหัว header file เป็นระดับนึง
และห้าม save กลับทันทีนะครับ ต้องออกไปที่ DOS MODE หรือใช้ Explorer ในการ
เปลี่ยน extension ครับ

ดู จำนวน record ใน table ทั้งหมด

SELECT
[TableName] = so.name,
[RowCount] = MAX(si.rows)
FROM
sysobjects so,
sysindexes si
WHERE
so.xtype = 'U'
AND
si.id = OBJECT_ID(so.name)
GROUP BY
so.name
ORDER BY
2 DESC

วันศุกร์ที่ 29 เมษายน พ.ศ. 2554

เวลา log in FM1234 SQL SERVER ไม่ได้

In order to resolve the issue, please refer to the following steps:

1. Login to the MSSQL Server Management Studio with Windows Authentication.
2. In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
3. Under the Server Properties, select a page of "Security".
4. Select the Server authentication as "SQL Server and Windows Authentication mode" and click Ok.
5. Restart the SQL Services and then try to login with 'sa' details.