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.
Access 2010でVBAを使用すると、サブがあります:
Public Sub setInterest(account As String, dmonth As Integer) ...somecode... End Sub
そして、私はそれを
setInterest("myAccount",3)
そして、構文エラーが発生します。 サブを変更して引数を1つだけ取り、3つを省略してもエラーは発生しません。問題は、引数が2つある場合のみです。
複数の引数を使用する場合は、次のいずれかを記述できます。
setInterest "myAccount", 3
または
Call setInterest("myAccount", 3)
どちらの例でも、引数に名前を付けることができます:
setInterest account:="myAccount", dmonth:= 3