Monday, November 8, 2010
To Set Warning in Macro
Monday, October 11, 2010
Power Point: Change .pps to .ppt
- is the actual presentation that you view
- file extension: .pps
PowerPoint presentation
- is working file in the creation/edit stage
- file extension: .ppt
To Change .pps to .ppt
Edit in PowerPoint
- Open PowerPoint application.
- Choose File > Open and locate the .pps file.
- Save the file as a regular presentation file (.ppt). Or, choose File > Save to save it once again as a PowerPoint show.
Change the file extension (*I test but not works)
- Right click on the filename, and choose Rename from the shortcut menu.
- Change the file extension from .pps to .ppt
- Double click on the new filename and it will open in PowerPoint as a working presentation file.
------------
Source From: Change a PowerPoint Show File to a Working PowerPoint Presentation
Monday, September 27, 2010
Saturday, September 11, 2010
Ms Access - Query 2 ( Sort & Criteria & Boolean Operator)
Click View-> Design View.
In the Customer Age field, click in the Sort row.
When the drop-down arrow appears, click it, then select Ascending.

Click Run. The data will be sort by Customer Age ascending.

Add Criteria
In the query's Customer table, add Customer Type field to the new column.

In the Customer Type field, click in the Criteria row. Type Standard in the cell then Enter.

**Criteria Type quote
text = ""
number = non
date = ##
Click Run.
Customer Table returns customers whose Customer Type is Standard.

Sample SQL:
SELECT Customer.[Customer Name], Customer.[Customer Age], Customer.[Customer Type]FROM CustomerWHERE (((Customer.[Customer Type])="standard"));
Boolean operators
-allow you to add multiple criteria to a query
-example:AND, OR, NEITHER, and NOR
Employ the OR operator
In the design view, at the Customer Type field, click in the "or" row under the criterion "Standard".
Type student for new criteria then click Run.

The query results will show all the Customer whose Customer type are either "Standard" or "Student".

Employ the AND operator
In design view, add new field Address in new column.
In the Customer Type field, click in the Criteria row, type Standard.
In the Address field, click in the Criteria row, type KL.

Click Run.
The query result returns customers whose customer type is standard AND address is KL.
Wednesday, September 8, 2010
Ms Access - Append Data
-An append query selects records from one or more data sources and copies the selected records to an existing table.
Steps to create append query:
Create a select query
Use query wizard or query design to select data that want to copy. See here.
Convert the select query to an append query
After data is selected, go to design view.
Click on Append icon on the ribbon.

In Append pop up window, choose the destination table & database name. Click OK.

Choose the destination fields for each column (or select * for all fields) in the append query.

In some cases, Access automatically chooses the destination fields for you.
Preview and run the query to append the records.
An confirmation message will be pop up, click yes.
Monday, September 6, 2010
Ms Access - Macro
http://office.microsoft.com/en-in/access-help/introduction-to-macros-HA001214202.aspx
Macro Action
http://msdn.microsoft.com/en-us/library/bb149142(v=office.12).aspx
Macro
-a simplified programming language that can be used to increase the functionality of the data base
-The macros contain actions that make tasks, like opening a report, executing a query or to close the data base.
Create Macro
In the Create tab, in the group Other, click in Macro command, then Macro menu item.
The Macro definition panel will appears

Select the OpenForm action.

Configure the OpenForm arguments.
A condition specifies certain criteria that must be met before an action will be performed. You can use any expression to evaluate to true or false or Yes or No the expression and execute or not some commands based in these results.
*If you use Datasheet for the View argument, Access displays the result set if the query is a select, crosstab, union, or pass-through query whose ReturnsRecords property is set to Yes; and it runs the query if it is an action, data-definition, or pass-through query whose ReturnsRecords property is set to No.
The
Sunday, September 5, 2010
Ms Access - Query
-range from simple query commands such as insert, select & delete.
-more advanced concepts such as unions and dynamic code substitution.
Refer from: Blue Claw Query Tutorials
http://inpics.net/access07.html
http://www.baycongroup.com/access2007/index.html
Create queries
There are two ways to create queries:
i) Using Query Wizard
In the Create tab, click Query Wizard icon.

New Query window will appear, select Simple Query Wizard.
Click OK.

When the Simple Query Wizard opens, double-click Customer Name in the Available Fields list.
Customer Name should appear in the Selected Fields column:

Repeat above steps if you wan to add more field for query.

Type Name & Age for title, click Finish.

To switch to design view, click on "Name & Age" (query) tab, Go to View->Design View.

To switch to SQL view, Go to View->SQL View.

For Datasheet View, Go to View->Datasheet View.

ii) Using Query Design
In the Create tab, click Query Design icon.

In the Show Table tab, select Customer table, click Add. Then close the box. Customer table will be appear.

Drag Customer Name (table field) to the first column. Continue with other field that need in the query.

In the Design tab, click Run.

The query shows the Customer Name & Customer Age of each customer in the Customers table in datasheet view.
Crosstab Queries
- can present a large amount of summary data in a format that is usually simpler to analyse than viewing the information in a database form.
- Each attribute (field) in a table typically contains a category of data. A crosstab query summarizes the data from one or more of these fields that are separated into groups based on one or more fields.
Wednesday, September 1, 2010
八宝粥
红豆 50克
净化水 300毫升
花生仁 20克
干莲子 15克
干红枣 50克
无核红葡萄干 50克
糯米 180克
黑米 50克
松子仁 15克
净化水 2200毫升
冰糖 100克 制作方法
1.
将红豆及花生洗净,用水泡 2小时,倒掉水,然后放小锅里,加300毫升水浸盖,中火煮30分钟,关火。保留煮豆汤。莲子用水泡2小时,捞出。把莲芯去掉。红枣洗净,去核。葡萄干洗净。
2.
糯米及黑米淘净,泡2小时,沥出。
3.
取一个大汤锅,放入红豆,花生及煮豆汤,莲子,红枣,葡萄干,糯米,黑米,松子仁,2000毫升水,用大火煮开。横放两根筷子在锅上,将锅盖放在筷子上,把火调至中偏小,煮1小时20分钟,其间,用勺偶尔搅一下,以免粘锅。加冰糖,稍搅,小火煮30分钟即好。
摘自:坚果白度百科
八宝饭
糯米 500克
白糖 200克
猪油 75克
豆沙 125克
蜜枣 20克
瓜子仁 5克
松子仁 20克
糖莲子 20克
桂圆肉 10克
红绿瓜丝 30克
猪板油 20克 制作方法
1.
将糯米淘净,放在冷水中泡五小时,捞出沥干,松松地放入笼屉(笼内垫有薄布),用旺火蒸熟成糯米饭,倒入适当的容器中,加入白糖、熟猪油、开水,拌和备用。
2.
取小碗5只,碗底抹上猪油,把蜜枣、桂圆、糖莲子、瓜子仁、松子仁、红绿瓜丝等在碗底按图案排列后,放入少许糯米饭,再入豆沙,最后把糯米饭填满至碗口,揿平,上笼屉用旺火蒸约1小时时,使糖油渗入饭中。
3.
蒸好后倒覆于盘中即成。如蒸好后不马上进食,可冷放,食时回蒸。
摘自:坚果白度百科
八宝银耳汤
准备材料
干银耳 2朵
莲子 10粒
薏米 10克
百合 10克
红枣 5粒
花生 10粒
枸杞 10粒
冰糖 20克
制作方法
1.
将银耳、莲子、薏米、花生分别单独泡水,大概需要泡5、6个小时左右。
2.
烧开一锅开水,把银耳、莲子、薏米、花生、红枣放入锅里,大火烧开后改小火。
3.
小火炖煮2个小时以后,把百合放入炖煮15分钟后放入枸杞、冰糖。
4.
开中火炖煮5分钟即可
摘自:坚果白度百科
---------
八宝银耳汤-准备材料
干银耳 两朵
莲子 10粒
薏米 10克
百合 10克
红枣 5粒
花生 10粒
枸杞 10粒
冰糖 20克
八宝银耳汤-制作方法
1、将银耳、莲子、薏米、花生分别单独泡水,大概需要泡5、6个小时左右。
2、烧开一锅开水,把银耳、莲子、薏米、花生、红枣放入锅里,大火烧开后改小火。
3、小火炖煮2个小时以后,把百合放入炖煮15分钟后放入枸杞、冰糖。
4、开中火炖煮5分钟即可。
份量 3
总共需时: 9 小时 (6 小时 准备 - 3 小时 制作)
八宝银耳汤-银耳的功效
银耳具有强精、补肾、润肠、益胃、补气、和血、强心、壮身、补脑、提神、美容、嫩肤、延年益寿之功效。用于治肺热咳嗽、肺燥干咳、妇女月经不调、胃炎、大便秘结等病症。它能提高肝脏解毒能力,保护肝脏功能,它不但能增强机体抗肿瘤的免疫能力,还能增强肿瘤患者对放疗、化疗的耐受力。它也是一味滋补良药,特点是滋润而不腻滞,具有补脾开胃、益气清肠、安眠健胃、补脑、养阴清热、润燥之功,对阴虚火旺不受参茸等温热滋补的病人是一种良好的补品。银耳富有天然特性胶质,加上它的滋阴作用,长期服用可以润肤,并有祛除脸部黄褐斑、雀斑的功效。银耳是和种含膳食纤维的减肥食品,它的膳食纤维可助胃肠蠕动,减少脂肪吸收。
摘自:互动百科
飲食5迷思
真相1:其實糙米飯和白飯的熱量差不多,分別是150和160卡路里,惟糙米飯所含的纖維素和微量元素較多。
迷思2:不吃正餐,改吃餅乾之類的食物也可減肥。
真相2:事實是本末倒置,因為餅乾是點心而非正餐。舉例,吃三塊餅乾加一杯熱飲只是點心,不是正餐,因此無法應付身體的需要。肚子很快就餓,若再吃三塊餅乾,餓了再吃三塊,結果攝取的熱量比吃正餐更高,根本無助減肥。有些餅乾含有南瓜子、麥片等,仍含有脂肪。無論是甚麼食品或飲品,少了脂肪就會加入糖,熱量不會少太多,因此適量吃就好。
迷思3:堅果沒有膽固醇,多吃都沒關係。
真相3:沒有膽固醇不代表沒有脂肪和熱量,堅果的熱量和脂肪尤其高,一週吃30克左右即可,且宜挑沒有添加鹽分的。30克的份量大約是用手掌捉一把,手掌大者就要捉少一點,才不會吃過量。
迷思4:吃燕麥片可以降低膽固醇。
真相4:燕麥片不是神丹妙藥,即使每天吃也不一定能完全降低膽固醇。高膽固醇者若要依賴燕麥片減少膽固醇,必須配合低脂、低膽固醇和高纖維的飲食原則,加上定期運動,才能有效地降低膽固醇,否則徒然。
迷思5:有機食物比較有營養。
真相5:若從營養學而言,有機食物不是特別有營養,只是不含農藥,有經濟能力者吃有機食物無妨。至於亞麻籽油含有的營養對眼睛有益的說法,目前還沒有科學根據,適量食用就好。(資料來源:營養師伍卉苓)
资料摘自:光明日報/良醫‧報導:黃秀儀‧2010.06.29
Friday, August 20, 2010
Ms Access 2007 Menu & Link
Create a Database
Create a Table
Adding Data
Create a Form
Modify a Form
Create a Query
Modify a Query
Create a Macro
Convert Access Database to Excel
Microsoft Access versus SQL Server
Summary
-----------
Microsoft Access 2007 Tutorial—Free & Online
Microsoft Office Access 2007
Database Basics
Sunday, August 15, 2010
Create Show Desktop Icon
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
2. Save this notepad as "Show desktop.scf".
3. An show desktop icon will appear.
Sunday, August 8, 2010
Ms Excel - Macro
Thursday, July 29, 2010
Create Drop Down List
Allows us to enter data into an Excel spreadsheet from a preset list of entries.
Benefits:
Make data entry easier
Limit the number of acceptable choices.
How to create drop down list:
a) Data in same worksheet
i) Enter data we want in the list.
ii) Click on a cell (the location where drop down list will be created)
iii) Click on “Data” Tab -> Data Validation option.
iv) Click on “Setting” Tab in dialog box.
v) Choose “List” from Allow menu.
vi) Click on the button at Source line.
vii) Drag list of data needed in spreadsheet.
viii) Click OK in dialog box.
ix) A down arrow will appear beside cell. Done.
b) Data in Different worksheet but same workbook
c) Data in Different Worksheet and Different workbook
a) Data in Different worksheet but same workbook
i) Enter data we want in the list.
ii) To define a name for the list, select all cells with data that we want to name.
iii) Click on “Name box” at the left end of formula bar.
iv) Insert name for the cells, for example: Fruit_List.
v) Press Enter.
vi) Follow steps for a(ii) to a(v) above.
vii) Enter “=Fruit_List” in Source line.
viii)
----------
Useful Link:
Same Sheet
http://spreadsheets.about.com/od/datamanagementinexcel/qt/20071113_drpdwn.htm
Different Sheets same Workbook & Different Workbook
http://office.microsoft.com/en-us/excel-help/create-a-drop-down-list-from-a-range-of-cells-HP005202215.aspx
Tuesday, June 22, 2010
赚钱的八大经典定律
识别假蜂蜜:在蜂蜜中加入少量冷开水,也可滴几滴碘酒或酒精,如滴入物呈紫、绿或红褐色的,就是假蜂蜜。
毛巾常洗且每隔一段时间用肥皂、洗衣粉或碱液煮沸数分钟,可防发硬。煮沸时毛巾应全部浸水中,以免与空气接触发生氧化而降低柔软度
巧克力不宜放冰箱中冷存!巧克力在冰箱中冷存后,一旦取出,在室温条件下其表面会结出一层白霜,且极易发霉变质,失去原味。
--------------
URL: http://ks.cn.yahoo.com/question/1510060102165_2.html
生活小窍门
2. 如何使用砂锅1:新买来的砂锅第一次使用时,最好用来熬粥,或者用它煮一煮浓淘米水,以堵塞砂锅的微细孔隙,防止渗水
3. 如果衣领和袖口较脏,可将衣物先放进溶有洗衣粉的温水中浸泡15-20分钟,再进行正常洗涤,就能洗干净。
4. 米饭若烧糊了,赶紧将火关掉,在米饭上面放一块面包皮,盖上锅盖,5分钟后,面包皮即可把糊味吸收。
许多人爱吃青菜却不爱喝菜汤,事实上,烧菜时,大部分维生素已溶解在菜汤里。比如小白菜炒好后,会有70%的维生素C溶解在菜汤里。
白袜子若发黄了,可用洗衣粉溶液浸泡30分钟后再进行洗涤。
面包能消除衣服油迹:用餐时,衣服如果被油迹所染,可用新鲜白面包轻轻摩擦,油迹即可消除。
煮鸡蛋时,可先将鸡蛋放入冷水中浸泡一会,再放入热水里煮,这样煮好的鸡蛋蛋壳不破裂,且易于剥掉。
煮饭不宜用生水。因为自来水中含有氯气,在烧饭过程中,它会破坏粮食中所含的维生素B1,若用开水煮饭,维生素B1可免受损失。
面包与饼干不宜一起存放。面包含水分较多,饼干一般则是干而脆,两者如果存放在一起,就会使面包变硬,饼干也会因受潮失去酥脆感
梨可防晒!常食梨能使肌肤保持弹性,不起皱纹。梨中含有丰富的维生素E,对太阳光的暴晒能起到防护作用。
芦笋可减肥!芦笋能提高人体的基础代谢,促进人体内热量的消耗,并有很强的脱水能力,因此,多吃新鲜芦笋能变得苗条。
牛仔裤穿时间长了就会褪色。可以把新买来的牛仔裤放入浓盐水中浸泡12小时后,再用清水洗净,以后再洗涤时就不会褪色了
米饭做好后,挑些比较软、温热的揉成团,放在面部轻揉,直到米饭团变得油腻污黑,然后用清水洗掉,这样可使皮肤呼吸通畅,减少皱纹。
自来水刚煮沸就关火对健康不利,煮沸3-5分钟再熄火,烧出来的开水亚硝酸盐和氯化物等有毒物质含量都处于最低值,最适合饮用。
url: http://ks.cn.yahoo.com/question/1307112702207.html
Saturday, June 5, 2010
Ms Excel String Function
(A) String with not fixed character number
Data Used:
Fruit List
25 Building A 25Mar2010
26 Building B 26Mar2010
27 Building C 26Apr2010
28 Building D 05Sep2010
29 Building E 09Jan2010
Formula Used:
Text = "25 Apple 25Mar2010"
Partial of String
"25" = LEFT(Text,2)
"Building A" = MID(Text,10)
"25Mar2010" = RIGHT(Text,9)
First & Last Character/Digit
"2" = LEFT(Text)
"0" = RIGHT(Text)
Remove Partial of String
"25Mar" = LEFT(Text,LEN(Text)-2)
*Replace Text with the data cell

(B) String with not fixed character number
Retrieve Text before or after "Spacing"
Data Used:
TIENWAH Final Divddend 12.05 Sen
FABER Final dividend 6% Less Tax
LEADER First lntenm Dividend 1:5 Sen Less Tax
APM Final Dividend 10% Less 25% Tax
HUPsENG Final Dividend 4 Sen Single Tier
Formula Used:
A2 = "TIENWAH Final Divddend 12.05 Sen"
"TIENWAH" = LEFT(A2,IF(ISERROR(FIND(" ",A2,1)),LEN(A2),FIND(" ",A2,1)-1))
"Final Divddend 12.05 Sen" =RIGHT(A2,LEN(A2)-1-(IF(ISERROR(FIND(" ",A2,1)),LEN(A2),FIND(" ",A2,1)-1)))
Search location of first "Space"
"8' = FIND(" ",A2,1)

--------------------
URL:
Save time by using Excel's Left, Right, and Mid string functions
RIGHT, RIGHTB
Removing the last two characters from a string
Extracting First And Last Names
Wednesday, May 19, 2010
Pivot Table Link
-- Introduction
-- Clear Old Items
-- Create a Pivot Table in Excel 2007
-- Custom Calculations
-- Data Field Layout
-- Field Settings
-- Filter Source Data
-- GetPivotData
-- Grand Totals
-- Grouping Data
-- Multiple Consolidation Ranges
-- Pivot Cache
-- Printing
-- Protection
-- Report Filters
-- Running Totals
-- Show and Hide Items
- Subtotals
Pivot Table Blog -- Related Posts
New Items at End of Pivot Table Drop Down Lists
Refer: http://contextures.com/xlPivot04.html
Youtube Learning Pivot
http://www.contextures.com/xlVideos10.html#FilterTop10
Thursday, April 1, 2010
Wednesday, March 31, 2010
TNB Tariff Calculation
来自:http://www.tnb.com.my/tnb/tariff/newrate_domestic.htm
此外,我们可以用以下的网址来查查家里的电单。
http://www.tnb.com.my/tnb/tariff/calc.htm
Sunday, March 28, 2010
Lession 7 : Japanese Word Order
Subject | Verb / 动词 | Object |
I | eat | rice. |
Japanese is a subject-object-verb language. (so are Korean, Turkish, etc.)
"San" is a title of respect added to a name. (so it can not be used when referring to oneself.)
"Wa" and "o" are particles. They are like English prepositions, but they always come after nouns.
Composing questions in Japanese is just by adding the particle "ka" at the end. Question marks are not used in Japanese.
Lession 6 : Sample Conversation
Hello
Watashi wa Morita Akio desu.
I am Akio Morita
Hajimemashite.
Nice to meet you.
Anata wa Amerika-jin desu ka.
Are you an American?
Nihon-jin desu.
I am Japanese.
Anata wa daigaku-sei desu ka.
Are you a college student?
Watashi wa kookoo-sei desu.
I am a high school student.
-------------------------------------------
Romanji
|
Meaning
|
| Kon'nichi wa. | Hello |
| Watashi wa Morita Akio desu. | I am Akio Morita |
| Hajimemashite. | Nice to meet you. |
| Anata wa Amerika-jin desu ka. | Are you an American? |
| Nihon-jin desu. | I am Japanese. |
| Anata wa daigaku-sei desu ka. | Are you a college student? |
| Watashi wa kookoo-sei desu. | I am a high school student. |
















