Where am I going wrong here? I just don't see it.
do stuff...
Call CreateSQL("CPU", "", dtUsageDate, strLPAR, dUsage)
do more stuff...
Public Sub CreateSQL(DataType As String, FileType As String, UsageDate As Date, LPAR as String, UsageAmount As Double)
strSQL = "INSERT INTO MyDB.MyTable ('" & DataType & "','" & FileType & "','" & Format(UsageDate, "mm/dd/yyyy"
& "','" & strLPAR & "'," & UsageAmount & "
;"
End Sub
It's giving me an error on strLPAR when I try to call the sub. When I remove that, it gives me one on dUsage.
Any ideas where I messed up?
Thanks!
do stuff...
Call CreateSQL("CPU", "", dtUsageDate, strLPAR, dUsage)
do more stuff...
Public Sub CreateSQL(DataType As String, FileType As String, UsageDate As Date, LPAR as String, UsageAmount As Double)
strSQL = "INSERT INTO MyDB.MyTable ('" & DataType & "','" & FileType & "','" & Format(UsageDate, "mm/dd/yyyy"
End Sub
It's giving me an error on strLPAR when I try to call the sub. When I remove that, it gives me one on dUsage.
Any ideas where I messed up?
Thanks!