ClaraBarton
Registered User.
- Local time
- Today, 06:54
- Joined
- Oct 14, 2019
- Messages
- 605
I've been over and over this:
Returns the error: too few parameters; expected 2
On break LocID returns the value of 4 and ItemID returns the value of 376.
The junction table only has 2 fields besides the autonumber.
What is it talking about?
Code:
Public Sub AddJunctionRecord(LocID As Long, ItemID As Long)
Dim strSQl As String
10 strSQl = "INSERT INTO tblLocItem (fLocID, fItemID) " & _
"VALUES (LocID, ItemID);"
20 CurrentDb.Execute strSQl, dbFailOnError
End Sub
On break LocID returns the value of 4 and ItemID returns the value of 376.
The junction table only has 2 fields besides the autonumber.
What is it talking about?