When trying to add items to a database table using INSERT INTO, I am receiving the following error:
You cannot add or change a record because a related record is required in table 'items'
I am using the following code:
strSQL = "INSERT INTO Auctions(ItemID,StartBid,BidStatus,EndDate)Values(" & "'" & strItemID & "'" & "," & strStartBid & "," & strBidStatus & "," & "#" & strEndDate & "#)"
objConn.Execute strSQL
Any suggestions would be appreciated. Thanks in advance!
You cannot add or change a record because a related record is required in table 'items'
I am using the following code:
strSQL = "INSERT INTO Auctions(ItemID,StartBid,BidStatus,EndDate)Values(" & "'" & strItemID & "'" & "," & strStartBid & "," & strBidStatus & "," & "#" & strEndDate & "#)"
objConn.Execute strSQL
Any suggestions would be appreciated. Thanks in advance!