Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は MS Access データベースに取り組んでおり、アクセスでフォームを作成しています。
フィールド total_hrs があります。ここで助けが必要です。
分だけを埋めたいので、時間に変換する必要があります。
そのために私はonlost focus total_hrsを使用しています
を使用ABS(imin/60)して時間を計算できます。imin は int です。
ABS(imin/60)
sub Calc Dim iHrs as int dim iMin as int iHrs = ABS(iMin/60) End sub
このコードは、onlost fouce の後に、または偶数の後に置くことができます
フォームやコードを見ないと、解決するのは難しいです。