上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
ylong
註冊時間: 2003-07-30 文章: 118
第 1 樓
|
發表於: 星期三 七月 07, 2004 3:38 pm 文章主題: Combo1與Combo2的篩選問題 |
|
|
請問各位先進,Combo2該如何依Combo1所選擇的資料,而篩選出所要
的資料,例:Combo1是依料號品名顯示,而Combo2是規格,則Combo2該如何依Combo1所選擇的料號,而顯示該料號的規格 |
|
回頂端 |
|
 |
garfield Site Admin

註冊時間: 2003-01-30 文章: 2160
第 2 樓
|
發表於: 星期三 七月 07, 2004 6:36 pm 文章主題: |
|
|
如果你規格資料筆數不多, 可以將 .combo2.RowSourceType=3
.combo2.RowSource = 'select 規格 from product where 料號=thisform.combo1.value into cursor zspec'
記得在setfocus前要去 requery() 就可以了 _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
 |
ylong
註冊時間: 2003-07-30 文章: 118
第 3 樓
|
發表於: 星期四 七月 08, 2004 7:56 am 文章主題: |
|
|
謝謝garfield的指導,我測試一下 |
|
回頂端 |
|
 |
ylong
註冊時間: 2003-07-30 文章: 118
第 4 樓
|
發表於: 星期四 七月 08, 2004 11:02 am 文章主題: |
|
|
請問garfield我的requery() 應該放在那個地方,煩請指點 |
|
回頂端 |
|
 |
garfield Site Admin

註冊時間: 2003-01-30 文章: 2160
第 5 樓
|
發表於: 星期四 七月 08, 2004 11:23 am 文章主題: |
|
|
方向對了但字打錯了, 請見諒, 是thisform.combo2.Gotfocus裡要 thisform.combo2.requery( ) 啦 _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
 |
ylong
註冊時間: 2003-07-30 文章: 118
第 6 樓
|
發表於: 星期四 七月 08, 2004 11:39 am 文章主題: |
|
|
謝謝garfield已測試出來了 |
|
回頂端 |
|
 |
|