B
Bill
SQL is issuing the error 3061: "Too few
parameters. Expected 6."
I don't see the problem.
strSQL = "Insert Into Transactions
(FolioID,TransDate,TransCodeID,TransDescID,"
strSQL = strSQL & "TransMemo,TransExp,TransInc,TransBal) "
strSQL = strSQL & "VALUES (""" & [FolioID] & """, [TransDate],
[TransCodeID], [TransDescID], "
strSQL = strSQL & """" & [TransMemo] & """,[TransExp], [TransInc],
[TransBal])"
CurrentDb.Execute strSQL
Data types:
Dim FolioID As String
Dim TransDate As Date
Dim TransExp As Currency
Dim TransInc As Currency
Dim TransBal As Currency
Dim TransDescID As Integer
Dim TransMemo As String
Dim TransCodeID As Integer
Does SQL/VBA get screwed up if the table names
are the same as the local variable names as you
see here?
Thanks for any thoughts here,
Bill
parameters. Expected 6."
I don't see the problem.
strSQL = "Insert Into Transactions
(FolioID,TransDate,TransCodeID,TransDescID,"
strSQL = strSQL & "TransMemo,TransExp,TransInc,TransBal) "
strSQL = strSQL & "VALUES (""" & [FolioID] & """, [TransDate],
[TransCodeID], [TransDescID], "
strSQL = strSQL & """" & [TransMemo] & """,[TransExp], [TransInc],
[TransBal])"
CurrentDb.Execute strSQL
Data types:
Dim FolioID As String
Dim TransDate As Date
Dim TransExp As Currency
Dim TransInc As Currency
Dim TransBal As Currency
Dim TransDescID As Integer
Dim TransMemo As String
Dim TransCodeID As Integer
Does SQL/VBA get screwed up if the table names
are the same as the local variable names as you
see here?
Thanks for any thoughts here,
Bill