close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
The Best Way to Manage your Money.

Start using Mint today to set a budget, track your goals and do more with your money.
From our sponsors
我手邊有一個Access資廖庫有2萬筆資料要加入一個欄位
Jan 20th 2014, 16:12

這一個最大值累計,只是流水號比較簡易,做法如下
如果你都還沒有用到自動編號最好辦了,
1.先加一個欄位為〝暫時編號〞,屬性為,自動編號,儲存後關閉,讓它執行一次,就有1~20000的暫時編號
2.再加一個欄位為編號,屬性為文字,9位就好,
3.利用更新查詢建立,語法如下,

update 資料表 set 編號 = 'NO' & Format(暫時編號,'0000000')

3.以後在表單的BeforeInsert 事件加入這個
Dim A As String
A = DMax("編號", "資料表")
Me!G = "NO" & Format(CLng(Right(A, 7)) + 1, "0000000")
以後在表單輸入資料時,就會自動產生一碼編你了,但這是單機做法,如果有多人共用時,就不是這個做法了
有空到我部落格參觀一下
http://blog.xuite.net/awake.tw

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 xxxmkks 的頭像
    xxxmkks

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    xxxmkks 發表在 痞客邦 留言(0) 人氣()